Package com.tangosol.coherence.servlet
Class LocalSessionCacheDelegator
- java.lang.Object
-
- com.tangosol.coherence.servlet.DefaultCacheDelegator
-
- com.tangosol.coherence.servlet.LocalSessionCacheDelegator
-
- All Implemented Interfaces:
CacheDelegator
public class LocalSessionCacheDelegator extends DefaultCacheDelegator
-
-
Field Summary
-
Fields inherited from class com.tangosol.coherence.servlet.DefaultCacheDelegator
LOGGER
-
-
Constructor Summary
Constructors Constructor Description LocalSessionCacheDelegator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<String>deleteExpiredLocalSessions(AbstractHttpSessionCollection collection)Deletes the locally opened sessions in the session cache which have timed-out and returns the ids for deleted sessions.Set<String>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 cacheIteratorgetIteratorForPotentiallyExpiredLocalIds(AbstractHttpSessionCollection collection)Retrieve an iterator of potentially expired session ids from the list of local sessions.voidoptimisticModelUpdate(AbstractHttpSessionModel model)Perform 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
-
-
-
-
Method Detail
-
deleteModel
public void deleteModel(AbstractHttpSessionCollection collection, AbstractHttpSessionModel model)
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
public void optimisticModelUpdate(AbstractHttpSessionModel model)
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
public void putModel(AbstractHttpSessionModel model)
Description copied from interface:CacheDelegatorPut a session model in the cache.- Specified by:
putModelin interfaceCacheDelegator- Overrides:
putModelin classDefaultCacheDelegator- Parameters:
model- the session model
-
getIteratorForPotentiallyExpiredLocalIds
public Iterator getIteratorForPotentiallyExpiredLocalIds(AbstractHttpSessionCollection collection)
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
public Set<String> deleteExpiredSessions(AbstractHttpSessionCollection collection)
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
public Set<String> deleteExpiredLocalSessions(AbstractHttpSessionCollection collection)
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
public void flush(AbstractHttpSessionCollection collection, AbstractHttpSessionModel model)
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
-
-