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 DefaultCacheDelegator

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

All Implemented Interfaces:
CacheDelegator
Direct Known Subclasses:
LocalSessionCacheDelegator

public class DefaultCacheDelegator
extends java.lang.Object
implements CacheDelegator

Field Summary
protected static java.util.logging.Logger LOGGER
          The Logger object.

 

Constructor Summary
DefaultCacheDelegator()
           

 

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.

 

Field Detail

LOGGER

protected static final java.util.logging.Logger LOGGER
The Logger object.

Constructor Detail

DefaultCacheDelegator

public DefaultCacheDelegator()

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

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

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

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.