Package com.tangosol.coherence.servlet
Class LocalSessionCacheDelegator
java.lang.Object
com.tangosol.coherence.servlet.DefaultCacheDelegator
com.tangosol.coherence.servlet.LocalSessionCacheDelegator
- All Implemented Interfaces:
CacheDelegator
-
Field Summary
Fields inherited from class com.tangosol.coherence.servlet.DefaultCacheDelegator
LOGGER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDeletes the locally opened sessions in the session cache which have timed-out and returns the ids for deleted sessions.deleteExpiredSessions(AbstractHttpSessionCollection collection) Deletes the sessions in the session cache which have timed-out and returns the ids for deleted sessions.voiddeleteModel(AbstractHttpSessionCollection collection, AbstractHttpSessionModel model) Delete the session from the cluster cache.voidflush(AbstractHttpSessionCollection collection, AbstractHttpSessionModel model) Perform a flush operation of the session onto the cluster cacheRetrieve an iterator of potentially expired session ids from the list of local sessions.voidPerform an optimistic model update in the cache.voidputModel(AbstractHttpSessionModel model) Put a session model in the cache.Methods inherited from class com.tangosol.coherence.servlet.DefaultCacheDelegator
containsKey, getIteratorForPotentiallyExpiredIds, getModel, getModel, updateModelTimestamp
-
Constructor Details
-
LocalSessionCacheDelegator
public LocalSessionCacheDelegator()
-
-
Method Details
-
deleteModel
Description copied from interface:CacheDelegatorDelete the session from the cluster cache.- Specified by:
deleteModelin interfaceCacheDelegator- Overrides:
deleteModelin classDefaultCacheDelegator- Parameters:
collection- the collection objmodel- the model obj
-
optimisticModelUpdate
Description copied from interface:CacheDelegatorPerform an optimistic model update in the cache.- Specified by:
optimisticModelUpdatein interfaceCacheDelegator- Overrides:
optimisticModelUpdatein classDefaultCacheDelegator- Parameters:
model- the session mdoel
-
putModel
Description copied from interface:CacheDelegatorPut a session model in the cache.- Specified by:
putModelin interfaceCacheDelegator- Overrides:
putModelin classDefaultCacheDelegator- Parameters:
model- the session model
-
getIteratorForPotentiallyExpiredLocalIds
Description copied from interface:CacheDelegatorRetrieve an iterator of potentially expired session ids from the list of local sessions.- Specified by:
getIteratorForPotentiallyExpiredLocalIdsin interfaceCacheDelegator- Overrides:
getIteratorForPotentiallyExpiredLocalIdsin classDefaultCacheDelegator- Parameters:
collection- the session collection obj- Returns:
- iterator of potentially expired session local session ids
-
deleteExpiredSessions
Description copied from interface:CacheDelegatorDeletes the sessions in the session cache which have timed-out and returns the ids for deleted sessions.- Specified by:
deleteExpiredSessionsin interfaceCacheDelegator- Overrides:
deleteExpiredSessionsin classDefaultCacheDelegator- Parameters:
collection- the session collection obj- Returns:
- the set of ids of sessions that are deleted
-
deleteExpiredLocalSessions
Description copied from interface:CacheDelegatorDeletes the locally opened sessions in the session cache which have timed-out and returns the ids for deleted sessions.- Specified by:
deleteExpiredLocalSessionsin interfaceCacheDelegator- Overrides:
deleteExpiredLocalSessionsin classDefaultCacheDelegator- Parameters:
collection- the session collection obj- Returns:
- the set of ids of sessions that are deleted
-
flush
Description copied from interface:CacheDelegatorPerform a flush operation of the session onto the cluster cache- Specified by:
flushin interfaceCacheDelegator- Overrides:
flushin classDefaultCacheDelegator- Parameters:
collection- the session collection objmodel- the session model
-