railo.runtime.type.scope.session
Class SessionCache

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
              extended by railo.runtime.type.scope.session.SessionCache
All Implemented Interfaces:
Serializable, Cloneable, Map, Dumpable, Castable, Collection, Iteratorable, Scope, Session, SessionPlus, StorageScope, SharedScope, Sizeable, Struct

public final class SessionCache
extends StorageScopeCache
implements SessionPlus

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
 
Fields inherited from class railo.runtime.type.scope.storage.StorageScopeCache
SAVE_EXPIRES_OFFSET
 
Fields inherited from interface railo.runtime.type.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_VARIABLES
 
Fields inherited from interface railo.runtime.type.Struct
TYPE_LINKED, TYPE_REGULAR, TYPE_SYNC, TYPE_WEAKED
 
Fields inherited from interface railo.runtime.type.scope.storage.StorageScope
HITCOUNT, LASTVISIT, SESSION_ID, TIMECREATED, URLTOKEN
 
Method Summary
 Collection duplicate(boolean deepCopy)
           
static SessionPlus getInstance(String cacheName, String appName, PageContext pc, Log log)
          load an new instance of the client datasource scope
static SessionPlus getInstance(String cacheName, String appName, PageContext pc, Log log, SessionPlus defaultValue)
           
static boolean hasInstance(String cacheName, String appName, PageContext pc)
           
 
Methods inherited from class railo.runtime.type.scope.storage.StorageScopeCache
getKey, getStorageType, store, touchAfterRequest, touchBeforeRequest, unstore
 
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, get, get, getLastAccess, getMaxInactiveInterval, getStorage, getTimeSpan, getType, getTypeAsString, hasChanges, hasContent, initialize, isExpired, isInitalized, keyIterator, keys, keysAsString, lastVisit, pureKeys, release, remove, removeEL, set, setEL, setMaxInactiveInterval, setStorage, size, sizeOf, toDumpData, touch, values
 
Methods inherited from class railo.runtime.type.util.StructSupport
clone, containsKey, containsKey, entrySet, equals, get, get, get, invalidKey, isEmpty, iterator, keySet, put, putAll, remove, set, setEL, toString, valueIterator
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface railo.runtime.type.scope.SessionPlus
_getId
 
Methods inherited from interface railo.runtime.type.scope.Session
getLastAccess, getTimeSpan, isExpired, touch
 
Methods inherited from interface railo.runtime.type.SharedScope
touchAfterRequest, touchBeforeRequest
 
Methods inherited from interface railo.runtime.type.Scope
getType, getTypeAsString, initialize, isInitalized, release
 
Methods inherited from interface railo.runtime.type.Collection
clear, clone, containsKey, containsKey, get, get, get, get, keys, keysAsString, remove, removeEL, set, set, setEL, setEL, size
 
Methods inherited from interface railo.runtime.dump.Dumpable
toDumpData
 
Methods inherited from interface railo.runtime.type.Iteratorable
iterator, keyIterator, valueIterator
 
Methods inherited from interface railo.runtime.op.Castable
castToBoolean, castToBooleanValue, castToDateTime, castToDateTime, castToDoubleValue, castToDoubleValue, castToString, castToString, compareTo, compareTo, compareTo, compareTo
 
Methods inherited from interface java.util.Map
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values
 

Method Detail

duplicate

public Collection duplicate(boolean deepCopy)
Specified by:
duplicate in interface Collection
See Also:
Collection.duplicate(boolean)

getInstance

public static SessionPlus getInstance(String cacheName,
                                      String appName,
                                      PageContext pc,
                                      Log log)
                               throws PageException
load an new instance of the client datasource scope

Parameters:
cacheName -
appName -
pc -
Returns:
client datasource scope
Throws:
PageException

hasInstance

public static boolean hasInstance(String cacheName,
                                  String appName,
                                  PageContext pc)

getInstance

public static SessionPlus getInstance(String cacheName,
                                      String appName,
                                      PageContext pc,
                                      Log log,
                                      SessionPlus defaultValue)


Copyright © 2012 Railo