public class TerracottaClient extends Object
ClusteredInstanceFactory
for the clusterConstructor and Description |
---|
TerracottaClient(CacheManager cacheManager,
TerracottaClientRejoinListener rejoinAction,
TerracottaClientConfiguration terracottaClientConfiguration)
Constructor accepting the
TerracottaClientRejoinListener and the TerracottaClientConfiguration |
Modifier and Type | Method and Description |
---|---|
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
|
public TerracottaClient(CacheManager cacheManager, TerracottaClientRejoinListener rejoinAction, TerracottaClientConfiguration terracottaClientConfiguration)
TerracottaClientRejoinListener
and the TerracottaClientConfiguration
cacheManager
- rejoinAction
- terracottaClientConfiguration
- public ClusteredInstanceFactory getClusteredInstanceFactory()
ClusteredInstanceFactory
associated with this clientpublic boolean createClusteredInstanceFactory(Map<String,CacheConfiguration> cacheConfigs)
cacheConfigs
- public TerracottaCacheCluster getCacheCluster()
CacheCluster
associated with this clientCacheCluster
associated with this clientpublic void shutdown()
protected void waitUntilRejoinComplete()
Copyright © 2003-2013 Terracotta, Inc.. All Rights Reserved.