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.void
deleteModel(AbstractHttpSessionCollection collection, AbstractHttpSessionModel model)
Delete the session from the cluster cache.void
flush(AbstractHttpSessionCollection collection, AbstractHttpSessionModel model)
Perform a flush operation of the session onto the cluster cacheIterator
getIteratorForPotentiallyExpiredLocalIds(AbstractHttpSessionCollection collection)
Retrieve an iterator of potentially expired session ids from the list of local sessions.void
optimisticModelUpdate(AbstractHttpSessionModel model)
Perform an optimistic model update in the cache.void
putModel(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:CacheDelegator
Delete the session from the cluster cache.- Specified by:
deleteModel
in interfaceCacheDelegator
- Overrides:
deleteModel
in classDefaultCacheDelegator
- Parameters:
collection
- the collection objmodel
- the model obj
-
optimisticModelUpdate
public void optimisticModelUpdate(AbstractHttpSessionModel model)
Description copied from interface:CacheDelegator
Perform an optimistic model update in the cache.- Specified by:
optimisticModelUpdate
in interfaceCacheDelegator
- Overrides:
optimisticModelUpdate
in classDefaultCacheDelegator
- Parameters:
model
- the session mdoel
-
putModel
public void putModel(AbstractHttpSessionModel model)
Description copied from interface:CacheDelegator
Put a session model in the cache.- Specified by:
putModel
in interfaceCacheDelegator
- Overrides:
putModel
in classDefaultCacheDelegator
- Parameters:
model
- the session model
-
getIteratorForPotentiallyExpiredLocalIds
public Iterator getIteratorForPotentiallyExpiredLocalIds(AbstractHttpSessionCollection collection)
Description copied from interface:CacheDelegator
Retrieve an iterator of potentially expired session ids from the list of local sessions.- Specified by:
getIteratorForPotentiallyExpiredLocalIds
in interfaceCacheDelegator
- Overrides:
getIteratorForPotentiallyExpiredLocalIds
in 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:CacheDelegator
Deletes the sessions in the session cache which have timed-out and returns the ids for deleted sessions.- Specified by:
deleteExpiredSessions
in interfaceCacheDelegator
- Overrides:
deleteExpiredSessions
in 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:CacheDelegator
Deletes the locally opened sessions in the session cache which have timed-out and returns the ids for deleted sessions.- Specified by:
deleteExpiredLocalSessions
in interfaceCacheDelegator
- Overrides:
deleteExpiredLocalSessions
in 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:CacheDelegator
Perform a flush operation of the session onto the cluster cache- Specified by:
flush
in interfaceCacheDelegator
- Overrides:
flush
in classDefaultCacheDelegator
- Parameters:
collection
- the session collection objmodel
- the session model
-
-