public class LocalSessionCacheDelegator extends DefaultCacheDelegator
LOGGER
Constructor and Description |
---|
LocalSessionCacheDelegator() |
Modifier and Type | Method and 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.
|
Iterator |
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.
|
containsKey, getIteratorForPotentiallyExpiredIds, getModel, updateModelTimestamp
public void deleteModel(AbstractHttpSessionCollection collection, AbstractHttpSessionModel model)
CacheDelegator
deleteModel
in interface CacheDelegator
deleteModel
in class DefaultCacheDelegator
collection
- the collection objmodel
- the model objpublic void optimisticModelUpdate(AbstractHttpSessionModel model)
CacheDelegator
optimisticModelUpdate
in interface CacheDelegator
optimisticModelUpdate
in class DefaultCacheDelegator
model
- the session mdoelpublic void putModel(AbstractHttpSessionModel model)
CacheDelegator
putModel
in interface CacheDelegator
putModel
in class DefaultCacheDelegator
model
- the session modelpublic Iterator getIteratorForPotentiallyExpiredLocalIds(AbstractHttpSessionCollection collection)
CacheDelegator
getIteratorForPotentiallyExpiredLocalIds
in interface CacheDelegator
getIteratorForPotentiallyExpiredLocalIds
in class DefaultCacheDelegator
collection
- the session collection objpublic Set<String> deleteExpiredSessions(AbstractHttpSessionCollection collection)
CacheDelegator
deleteExpiredSessions
in interface CacheDelegator
deleteExpiredSessions
in class DefaultCacheDelegator
collection
- the session collection objpublic Set<String> deleteExpiredLocalSessions(AbstractHttpSessionCollection collection)
CacheDelegator
deleteExpiredLocalSessions
in interface CacheDelegator
deleteExpiredLocalSessions
in class DefaultCacheDelegator
collection
- the session collection obj