|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.ehcache.terracotta.TerracottaClient
public class TerracottaClient
Class encapsulating the idea of a Terracotta client. Provides access to the ClusteredInstanceFactory
for the cluster
Constructor Summary | |
---|---|
TerracottaClient(CacheManager cacheManager,
TerracottaClientRejoinListener rejoinAction,
TerracottaClientConfiguration terracottaClientConfiguration)
Constructor accepting the TerracottaClientRejoinListener and the TerracottaClientConfiguration |
Method Summary | |
---|---|
boolean |
createClusteredInstanceFactory(Map<String,CacheConfiguration> cacheConfigs)
Returns true if the clusteredInstanceFactory was created, otherwise returns false. |
TerracottaCacheCluster |
getCacheCluster()
Get the CacheCluster associated with this client |
ClusteredInstanceFactory |
getClusteredInstanceFactory()
Returns the ClusteredInstanceFactory associated with this client |
void |
shutdown()
Shuts down the client |
protected void |
waitUntilRejoinComplete()
Block thread until rejoin is complete |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TerracottaClient(CacheManager cacheManager, TerracottaClientRejoinListener rejoinAction, TerracottaClientConfiguration terracottaClientConfiguration)
TerracottaClientRejoinListener
and the TerracottaClientConfiguration
cacheManager
- rejoinAction
- terracottaClientConfiguration
- Method Detail |
---|
public ClusteredInstanceFactory getClusteredInstanceFactory()
ClusteredInstanceFactory
associated with this client
public boolean createClusteredInstanceFactory(Map<String,CacheConfiguration> cacheConfigs)
cacheConfigs
-
public TerracottaCacheCluster getCacheCluster()
CacheCluster
associated with this client
CacheCluster
associated with this clientpublic void shutdown()
protected void waitUntilRejoinComplete()
|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |