Skip navigation links

Oracle® Coherence Java API Reference
Release 3.7.1.0

E22843-01


com.tangosol.coherence.servlet
Interface CacheDelegator

All Known Implementing Classes:
DefaultCacheDelegator, SessionLocalBackingMapCacheDelegator

public interface CacheDelegator

An interface for a class that will perform all cluster cache related operations

Version:
Coherence 3.7.1
Author:
jk 2011.05.26

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)
           

 

Method Detail

deleteModel

void deleteModel(AbstractHttpSessionCollection collection,
                 AbstractHttpSessionModel model)
Delete the session from the cluster cache.
Parameters:
collection - the collection obj
model - the model obj

containsKey

boolean containsKey(java.lang.String sId,
                    AbstractHttpSessionCollection collection)
Check if the cluster cache contains a session obj.
Parameters:
sId - the session id
collection - the collection obj
Returns:
true, if the session obj exists in the cluster cache

getIteratorForPotentiallyExpiredIds

java.util.Iterator getIteratorForPotentiallyExpiredIds(AbstractHttpSessionCollection collection)
Parameters:
collection -
Returns:

getModel

AbstractHttpSessionModel getModel(java.lang.String sId,
                                  AbstractHttpSessionCollection collection)
Retrieve a model from the cluster cache
Parameters:
sId -
collection -
Returns:

putModel

void putModel(AbstractHttpSessionModel model)
Parameters:
model -

updateModelTimestamp

void updateModelTimestamp(AbstractHttpSessionModel model)
Parameters:
model -

optimisticModelUpdate

void optimisticModelUpdate(AbstractHttpSessionModel model)

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.