org.codehaus.activespace.cache
Class ClusteredCache

java.lang.Object
  extended byorg.codehaus.activespace.cache.impl.CacheFacade
      extended byorg.codehaus.activespace.cache.TransactionalCache
          extended byorg.codehaus.activespace.cache.ClusteredCache
All Implemented Interfaces:
javax.cache.Cache, Map

public class ClusteredCache
extends TransactionalCache

A clustered cache which replicates its state across other members of a cluster

Version:
$Revision: 1.3 $

Nested Class Summary
 
Nested classes inherited from class org.codehaus.activespace.cache.TransactionalCache
TransactionalCache.ThreadLocalState
 
Nested classes inherited from class java.util.Map
Map.Entry
 
Constructor Summary
ClusteredCache(Space space, javax.cache.Cache behindCache)
           
 
Method Summary
 void commit()
           
protected  void waitUntilTransactionApplied()
          Wait around up to some timeout period until the local transaction has been distributed around the cluster and applied locally to the backing cache
 
Methods inherited from class org.codehaus.activespace.cache.TransactionalCache
clearThreadState, createCacheForCurrentThread, createThreadState, createTransactionCommand, getBackingCache, getDelegate, getName, getThreadCache, getThreadCache, getThreadState, getTransactionRegistration, isModifiedInTransaction, registerCacheWithTransactionManager, resetLocalChanges, setName, setThreadID, setTransactionRegistration, toString
 
Methods inherited from class org.codehaus.activespace.cache.impl.CacheFacade
addListener, clear, containsKey, containsValue, entrySet, evict, get, getAll, getCacheEntry, getCacheStatistics, isEmpty, keySet, load, loadAll, peek, put, putAll, remove, removeListener, size, values
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface javax.cache.Cache
equals, hashCode
 

Constructor Detail

ClusteredCache

public ClusteredCache(Space space,
                      javax.cache.Cache behindCache)
Method Detail

commit

public void commit()

waitUntilTransactionApplied

protected void waitUntilTransactionApplied()
Wait around up to some timeout period until the local transaction has been distributed around the cluster and applied locally to the backing cache



Copyright © 2004 Protique, Ltd.. All Rights Reserved.