Skip navigation links

Oracle® Fusion Middleware Java API Reference for Oracle Coherence
12c (12.1.3.0.0)

E47890-01


com.tangosol.coherence.servlet
Class SessionLocalBackingMapCacheDelegator

java.lang.Object
  extended by com.tangosol.coherence.servlet.SessionLocalBackingMapCacheDelegator

All Implemented Interfaces:
CacheDelegator

public class SessionLocalBackingMapCacheDelegator
extends java.lang.Object
implements CacheDelegator

An abstract base class from which implementations of HttpSessionCollection that use a SessionLocalBackingMap can be more easily built.

Author:
jk 2011.05.24

Constructor Summary
SessionLocalBackingMapCacheDelegator()
           

 

Method Summary
 boolean containsKey(java.lang.String sId, AbstractHttpSessionCollection collection)
          Check if the cluster cache contains a session obj.
 void deleteModel(AbstractHttpSessionCollection collection, AbstractHttpSessionModel model)
          Delete the session from the cluster cache.
 java.util.Iterator getIteratorForPotentiallyExpiredIds(AbstractHttpSessionCollection collection)
          Retrieve an iterator of potentially expired session ids.
 AbstractHttpSessionModel getModel(java.lang.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.

 

Constructor Detail

SessionLocalBackingMapCacheDelegator

public SessionLocalBackingMapCacheDelegator()

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 interface CacheDelegator
Parameters:
collection - the collection obj
model - the model obj

containsKey

public boolean containsKey(java.lang.String sId,
                           AbstractHttpSessionCollection collection)
Description copied from interface: CacheDelegator
Check if the cluster cache contains a session obj.
Specified by:
containsKey in interface CacheDelegator
Parameters:
sId - the session id
collection - the session collection obj
Returns:
true, if the session obj exists in the cluster cache

optimisticModelUpdate

public void optimisticModelUpdate(AbstractHttpSessionModel model)
Description copied from interface: CacheDelegator
Perform an optimistic model update in the cache.
Specified by:
optimisticModelUpdate in interface CacheDelegator
Parameters:
model - the session mdoel

getIteratorForPotentiallyExpiredIds

public java.util.Iterator getIteratorForPotentiallyExpiredIds(AbstractHttpSessionCollection collection)
Description copied from interface: CacheDelegator
Retrieve an iterator of potentially expired session ids.
Specified by:
getIteratorForPotentiallyExpiredIds in interface CacheDelegator
Parameters:
collection - the session collection obj
Returns:
Iterator of potentially expired session ids

getModel

public AbstractHttpSessionModel getModel(java.lang.String sId,
                                         AbstractHttpSessionCollection collection)
Description copied from interface: CacheDelegator
Retrieve a model from the cluster cache
Specified by:
getModel in interface CacheDelegator
Parameters:
sId - the session id
collection - the session collection obj
Returns:
the session model

putModel

public void putModel(AbstractHttpSessionModel model)
Description copied from interface: CacheDelegator
Put a session model in the cache.
Specified by:
putModel in interface CacheDelegator
Parameters:
model - the session model

updateModelTimestamp

public void updateModelTimestamp(AbstractHttpSessionModel model)
Description copied from interface: CacheDelegator
Update a session model timestamp in the cache.
Specified by:
updateModelTimestamp in interface CacheDelegator
Parameters:
model - the session model

Skip navigation links

Oracle® Fusion Middleware Java API Reference for Oracle Coherence
12c (12.1.3.0.0)

E47890-01


Copyright © 2000, 2014, Oracle and/or its affiliates. All rights reserved.