Skip navigation links

Oracle® Coherence Java API Reference
Release 12.1.2.0.3

E26043-02


com.tangosol.coherence.servlet
Interface CacheDelegator

All Known Implementing Classes:
DefaultCacheDelegator, LocalSessionCacheDelegator, 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)
          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.

 

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

getIteratorForPotentiallyExpiredIds

java.util.Iterator getIteratorForPotentiallyExpiredIds(AbstractHttpSessionCollection collection)
Retrieve an iterator of potentially expired session ids.
Parameters:
collection - the session collection obj
Returns:
Iterator of potentially expired session ids

getModel

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

putModel

void putModel(AbstractHttpSessionModel model)
Put a session model in the cache.
Parameters:
model - the session model

updateModelTimestamp

void updateModelTimestamp(AbstractHttpSessionModel model)
Update a session model timestamp in the cache.
Parameters:
model - the session model

optimisticModelUpdate

void optimisticModelUpdate(AbstractHttpSessionModel model)
Perform an optimistic model update in the cache.
Parameters:
model - the session mdoel

Skip navigation links

Oracle® Coherence Java API Reference
Release 12.1.2.0.3

E26043-02


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