ehcache

net.sf.ehcache.terracotta
Interface ClusteredInstanceFactory


public interface ClusteredInstanceFactory

Factory for creating clustered instances

Since:
1.7
Author:
Tim Eck, Geert Bevin

Method Summary
 CacheEventListener createEventReplicator(Ehcache cache)
          Create a replicator for the cache events of a given cache
 Store createStore(Ehcache cache)
          Create a Store instance for the given cache
 WriteBehind createWriteBehind(Ehcache cache)
          Create an WriteBehind instance for the given cache
 EhcacheXAStore createXAStore(Ehcache cache, Store store)
           
 CacheCluster getTopology()
          Get an api for looking at the clustered node topology.
 

Method Detail

createStore

Store createStore(Ehcache cache)
Create a Store instance for the given cache

Parameters:
cache - the cache will backed by the returned store
Returns:
store instance

getTopology

CacheCluster getTopology()
Get an api for looking at the clustered node topology.


createWriteBehind

WriteBehind createWriteBehind(Ehcache cache)
Create an WriteBehind instance for the given cache

Parameters:
cache - the cache to which the write behind will be tied
Returns:
write behind instance

createXAStore

EhcacheXAStore createXAStore(Ehcache cache,
                             Store store)
Parameters:
cache -
store -
Returns:
return clustered instance of EhcacheXAStore

createEventReplicator

CacheEventListener createEventReplicator(Ehcache cache)
Create a replicator for the cache events of a given cache

Parameters:
cache - the cache to which the replicator will be bound
Returns:
cache event replicator

ehcache

true