public class SessionLocalBackingMapCacheDelegator extends Object implements CacheDelegator
| Constructor and Description |
|---|
SessionLocalBackingMapCacheDelegator() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsKey(String sId, AbstractHttpSessionCollection collection)
Check if the cluster cache contains a session obj.
|
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 cache
|
Iterator |
getIteratorForPotentiallyExpiredIds(AbstractHttpSessionCollection collection)
Retrieve an iterator of potentially expired session ids.
|
Iterator |
getIteratorForPotentiallyExpiredLocalIds(AbstractHttpSessionCollection collection)
Retrieve an iterator of potentially expired session ids from the list of local sessions.
|
AbstractHttpSessionModel |
getModel(String sId, AbstractHttpSessionCollection collection)
Retrieve a model from the cluster cache
|
void |
optimisticModelUpdate(AbstractHttpSessionModel model)
Perform an optimistic model update in the cache.
|
void |
putModel(AbstractHttpSessionModel model)
Put a session model in the cache.
|
void |
updateModelTimestamp(AbstractHttpSessionModel model)
Update a session model timestamp in the cache.
|
public SessionLocalBackingMapCacheDelegator()
public void deleteModel(AbstractHttpSessionCollection collection, AbstractHttpSessionModel model)
CacheDelegatordeleteModel in interface CacheDelegatorcollection - the collection objmodel - the model objpublic boolean containsKey(String sId, AbstractHttpSessionCollection collection)
CacheDelegatorcontainsKey in interface CacheDelegatorsId - the session idcollection - the session collection objpublic void optimisticModelUpdate(AbstractHttpSessionModel model)
CacheDelegatoroptimisticModelUpdate in interface CacheDelegatormodel - the session mdoelpublic Iterator getIteratorForPotentiallyExpiredIds(AbstractHttpSessionCollection collection)
CacheDelegatorgetIteratorForPotentiallyExpiredIds in interface CacheDelegatorcollection - the session collection objpublic AbstractHttpSessionModel getModel(String sId, AbstractHttpSessionCollection collection)
CacheDelegatorgetModel in interface CacheDelegatorsId - the session idcollection - the session collection objpublic void putModel(AbstractHttpSessionModel model)
CacheDelegatorputModel in interface CacheDelegatormodel - the session modelpublic void updateModelTimestamp(AbstractHttpSessionModel model)
CacheDelegatorupdateModelTimestamp in interface CacheDelegatormodel - the session modelpublic Iterator getIteratorForPotentiallyExpiredLocalIds(AbstractHttpSessionCollection collection)
CacheDelegatorgetIteratorForPotentiallyExpiredLocalIds in interface CacheDelegatorcollection - the session collection objpublic Set<String> deleteExpiredSessions(AbstractHttpSessionCollection collection)
CacheDelegatordeleteExpiredSessions in interface CacheDelegatorcollection - the session collection objpublic Set<String> deleteExpiredLocalSessions(AbstractHttpSessionCollection collection)
CacheDelegatordeleteExpiredLocalSessions in interface CacheDelegatorcollection - the session collection objpublic void flush(AbstractHttpSessionCollection collection, AbstractHttpSessionModel model)
CacheDelegatorflush in interface CacheDelegatorcollection - the session collection objmodel - the session model