Skip navigation links

Oracle® Coherence Java API Reference
Release 3.7.1.0

E22843-01


com.tangosol.coherence.servlet
Class DefaultCacheDelegator

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

All Implemented Interfaces:
CacheDelegator

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)
           
 AbstractHttpSessionModel getModel(java.lang.String sId, AbstractHttpSessionCollection collection)
          Retrieve a model from the cluster cache
 void optimisticModelUpdate(AbstractHttpSessionModel model)
           
 void putModel(AbstractHttpSessionModel model)
           
 void updateModelTimestamp(AbstractHttpSessionModel model)
           

 

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 collection obj
Returns:
true, if the session obj exists in the cluster cache

getIteratorForPotentiallyExpiredIds

public java.util.Iterator getIteratorForPotentiallyExpiredIds(AbstractHttpSessionCollection collection)
Specified by:
getIteratorForPotentiallyExpiredIds in interface CacheDelegator
Returns:

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
Returns:

optimisticModelUpdate

public void optimisticModelUpdate(AbstractHttpSessionModel model)
Specified by:
optimisticModelUpdate in interface CacheDelegator

putModel

public void putModel(AbstractHttpSessionModel model)
Specified by:
putModel in interface CacheDelegator

updateModelTimestamp

public void updateModelTimestamp(AbstractHttpSessionModel model)
Specified by:
updateModelTimestamp in interface CacheDelegator

Skip navigation links

Oracle® Coherence Java API Reference
Release 3.7.1.0

E22843-01


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