public interface RemoteCacheContainer extends BasicCacheContainer
DEFAULT_CACHE_NAME| Modifier and Type | Method and Description |
|---|---|
<K,V> RemoteCache<K,V> |
getCache(boolean forceReturnValue) |
<K,V> RemoteCache<K,V> |
getCache(String cacheName,
boolean forceReturnValue) |
Configuration |
getConfiguration()
Retrieves the configuration currently in use.
|
Marshaller |
getMarshaller() |
Properties |
getProperties()
Deprecated.
|
boolean |
isStarted() |
boolean |
switchToCluster(String clusterName)
Switch remote cache manager to a different cluster, previously
declared via configuration.
|
boolean |
switchToDefaultCluster()
Switch remote cache manager to a the default cluster, previously
declared via configuration.
|
getCache, getCacheConfiguration getConfiguration()
ConfigurationBuilder builder = new ConfigurationBuilder();
builder.read(remoteCacheManager.getConfiguration());
// modify builder
remoteCacheManager.stop();
remoteCacheManager = new RemoteCacheManager(builder.build());
@Deprecated Properties getProperties()
<K,V> RemoteCache<K,V> getCache(String cacheName, boolean forceReturnValue)
<K,V> RemoteCache<K,V> getCache(boolean forceReturnValue)
boolean isStarted()
boolean switchToCluster(String clusterName)
true, otherwise it returns false.clusterName - name of the cluster to which to switch totrue if the cluster was switched, false otherwiseboolean switchToDefaultCluster()
true, otherwise it returns false.true if the cluster was switched, false otherwiseMarshaller getMarshaller()
Copyright © 2017 JBoss, a division of Red Hat. All rights reserved.