railo.runtime.type.scope.storage
Class StorageScopeCache

java.lang.Object
  extended by railo.runtime.type.util.StructSupport
      extended by railo.runtime.type.scope.storage.StorageScopeImpl
          extended by railo.runtime.type.scope.storage.StorageScopeCache
All Implemented Interfaces:
Serializable, Cloneable, Map, Dumpable, Castable, Collection, ForEachIteratorable, Iteratorable, Objects, Scope, SharedScope, StorageScope, Sizeable, Struct
Direct Known Subclasses:
ClientCache, SessionCache

public abstract class StorageScopeCache
extends StorageScopeImpl

client scope that store it's data in a datasource

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface railo.runtime.type.Collection
Collection.Key
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Field Summary
static long SAVE_EXPIRES_OFFSET
           
 
Fields inherited from class railo.runtime.type.scope.storage.StorageScopeImpl
CFID, CFTOKEN, HITCOUNT, LASTVISIT, SESSION_ID, TIMECREATED, URLTOKEN
 
Fields inherited from interface railo.runtime.type.scope.Scope
SCOPE_APPLICATION, SCOPE_ARGUMENTS, SCOPE_CALLER, SCOPE_CGI, SCOPE_CLIENT, SCOPE_CLUSTER, SCOPE_COOKIE, SCOPE_COUNT, SCOPE_FORM, SCOPE_LOCAL, SCOPE_REQUEST, SCOPE_SERVER, SCOPE_SESSION, SCOPE_UNDEFINED, SCOPE_URL, SCOPE_VAR, SCOPE_VARIABLES
 
Fields inherited from interface railo.runtime.type.Struct
TYPE_LINKED, TYPE_REGULAR, TYPE_SOFT, TYPE_SYNC, TYPE_WEAKED
 
Method Summary
static String getKey(String cfid, String appName, String type)
           
 String getStorageType()
           
 void store(Config config)
          store content on persistent layer
 void touchAfterRequest(PageContext pc)
          release scope only for current request, scope will be used again
 void touchBeforeRequest(PageContext pc)
          Initalize Scope only for this request, scope was already used
 void unstore(Config config)
          remove stored data from persistent layer
 
Methods inherited from class railo.runtime.type.scope.storage.StorageScopeImpl
_getId, castToBoolean, castToBooleanValue, castToDateTime, castToDateTime, castToDoubleValue, castToDoubleValue, castToString, castToString, clear, compareTo, compareTo, compareTo, compareTo, containsKey, containsValue, decode, encode, entryIterator, generateToken, get, get, getCreated, getLastAccess, getMaxInactiveInterval, getStorage, getTimeSpan, getType, getTypeAsString, hasChanges, hasContent, initialize, isExpired, isInitalized, keyIterator, keys, keysAsStringIterator, lastVisit, pureKeys, release, release, remove, removeEL, resetEnv, set, setEL, setMaxInactiveInterval, setStorage, size, sizeOf, toDumpData, touch, valueIterator, values, verifyToken
 
Methods inherited from class railo.runtime.type.util.StructSupport
call, callWithNamedValues, clone, containsKey, containsKey, entrySet, equals, get, get, get, get, get, getIterator, hashCode, invalidKey, isEmpty, keySet, put, putAll, remove, set, set, setEL, setEL, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface railo.runtime.type.Collection
clone, containsKey, duplicate, get, get, set, setEL
 
Methods inherited from interface railo.runtime.type.ForEachIteratorable
getIterator
 
Methods inherited from interface java.util.Map
containsKey, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove
 
Methods inherited from interface railo.runtime.type.Objects
call, callWithNamedValues, get, get, set, setEL
 

Field Detail

SAVE_EXPIRES_OFFSET

public static final long SAVE_EXPIRES_OFFSET
See Also:
Constant Field Values
Method Detail

touchAfterRequest

public void touchAfterRequest(PageContext pc)
Description copied from interface: SharedScope
release scope only for current request, scope will be used again

Specified by:
touchAfterRequest in interface SharedScope
Overrides:
touchAfterRequest in class StorageScopeImpl

getStorageType

public String getStorageType()

touchBeforeRequest

public void touchBeforeRequest(PageContext pc)
Description copied from interface: SharedScope
Initalize Scope only for this request, scope was already used

Specified by:
touchBeforeRequest in interface SharedScope
Overrides:
touchBeforeRequest in class StorageScopeImpl
Parameters:
pc - Page Context

store

public void store(Config config)
Description copied from interface: StorageScope
store content on persistent layer

Specified by:
store in interface StorageScope
Overrides:
store in class StorageScopeImpl

unstore

public void unstore(Config config)
Description copied from interface: StorageScope
remove stored data from persistent layer

Specified by:
unstore in interface StorageScope
Overrides:
unstore in class StorageScopeImpl

getKey

public static String getKey(String cfid,
                            String appName,
                            String type)


Copyright © 2012 Railo