ehcache

net.sf.ehcache.terracotta
Interface ClusteredInstanceFactory

All Known Implementing Classes:
ClusteredInstanceFactoryWrapper

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
 TransactionIDFactory createTransactionIDFactory(String clusterUUID)
          Create a TransactionIDFactory
 WriteBehind createWriteBehind(Ehcache cache)
          Create an WriteBehind instance for the given cache
 SoftLockFactory getOrCreateSoftLockFactory(String cacheName)
          Create a SoftLockFactory for a cache
 CacheCluster getTopology()
          Get an api for looking at the clustered node topology.
 String getUUID()
          Returns a universally unique identifiers for this factory.
 void shutdown()
          Cleans up any resources left behind after the shutdown of the associated CacheManager
 

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

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

getUUID

String getUUID()
Returns a universally unique identifiers for this factory.

Returns:
the identifier as a string

shutdown

void shutdown()
Cleans up any resources left behind after the shutdown of the associated CacheManager


createTransactionIDFactory

TransactionIDFactory createTransactionIDFactory(String clusterUUID)
Create a TransactionIDFactory

Parameters:
clusterUUID - a UUID unique to the cluster
Returns:
a TransactionIDFactory

getOrCreateSoftLockFactory

SoftLockFactory getOrCreateSoftLockFactory(String cacheName)
Create a SoftLockFactory for a cache

Parameters:
cacheName - the cache name for which to create a SoftLockFactory
Returns:
a SoftLockFactory

ehcache

true