public interface ClusteredInstanceFactory
Modifier and Type | Method and Description |
---|---|
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 uuid,
String cacheManagerName)
Create a TransactionIDFactory
|
WriteBehind |
createWriteBehind(Ehcache cache)
Create an WriteBehind instance for the given cache
|
SoftLockManager |
getOrCreateSoftLockManager(Ehcache cache)
Create a SoftLockManager 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
|
Store createStore(Ehcache cache)
cache
- the cache will backed by the returned storeCacheCluster getTopology()
WriteBehind createWriteBehind(Ehcache cache)
cache
- the cache to which the write behind will be tiedCacheEventListener createEventReplicator(Ehcache cache)
cache
- the cache to which the replicator will be boundString getUUID()
void shutdown()
TransactionIDFactory createTransactionIDFactory(String uuid, String cacheManagerName)
uuid
- a UUID unique to the clustercacheManagerName
- the name of the cache manager creating a TransactionIDFactorySoftLockManager getOrCreateSoftLockManager(Ehcache cache)
cache
- the cache for which to create a SoftLockManagerCopyright © 2003-2013 Terracotta, Inc.. All Rights Reserved.