Package org.infinispan.client.hotrod
Interface RemoteCacheContainer
- 
- All Superinterfaces:
 BasicCacheContainer,Lifecycle
- All Known Implementing Classes:
 RemoteCacheManager
public interface RemoteCacheContainer extends BasicCacheContainer
 
- 
- 
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default <K,V>
RemoteCache<K,V>getCache(boolean forceReturnValue)Same asgetCache("", forceReturnValue, null, null)default <K,V>
RemoteCache<K,V>getCache(String cacheName, boolean forceReturnValue)Same asgetCache(cacheName, forceReturnValue, null, null)default <K,V>
RemoteCache<K,V>getCache(String cacheName, boolean forceReturnValue, TransactionManager transactionManager)Same asgetCache(cacheName, forceReturnValue, null, transactionManager)default <K,V>
RemoteCache<K,V>getCache(String cacheName, boolean forceReturnValue, TransactionMode transactionMode)Same asgetCache(cacheName, forceReturnValue, transactionMode, null)<K,V>
RemoteCache<K,V>getCache(String cacheName, boolean forceReturnValue, TransactionMode transactionMode, TransactionManager transactionManager)default <K,V>
RemoteCache<K,V>getCache(String cacheName, TransactionManager transactionManager)Same asgetCache(cacheName, null, transactionManager)default <K,V>
RemoteCache<K,V>getCache(String cacheName, TransactionMode transactionMode)Same asgetCache(cacheName, transactionMode, null)<K,V>
RemoteCache<K,V>getCache(String cacheName, TransactionMode transactionMode, TransactionManager transactionManager)ConfigurationgetConfiguration()Retrieves the configuration currently in use.MarshallergetMarshaller()booleanisStarted()booleanisTransactional(String cacheName)booleanswitchToCluster(String clusterName)Switch remote cache manager to a different cluster, previously declared via configuration.booleanswitchToDefaultCluster()Switch remote cache manager to a the default cluster, previously declared via configuration.- 
Methods inherited from interface org.infinispan.commons.api.BasicCacheContainer
getCache, getCache, getCacheNames 
 - 
 
 - 
 
- 
- 
Method Detail
- 
getConfiguration
Configuration getConfiguration()
Retrieves the configuration currently in use. The configuration object is immutable. If you wish to change configuration, you should use the following pattern:ConfigurationBuilder builder = new ConfigurationBuilder(); builder.read(remoteCacheManager.getConfiguration()); // modify builder remoteCacheManager.stop(); remoteCacheManager = new RemoteCacheManager(builder.build());- Returns:
 - The configuration of this RemoteCacheManager
 
 
- 
getCache
default <K,V> RemoteCache<K,V> getCache(String cacheName, boolean forceReturnValue)
Same asgetCache(cacheName, forceReturnValue, null, null) 
- 
getCache
default <K,V> RemoteCache<K,V> getCache(boolean forceReturnValue)
Same asgetCache("", forceReturnValue, null, null) 
- 
getCache
default <K,V> RemoteCache<K,V> getCache(String cacheName, TransactionMode transactionMode)
Same asgetCache(cacheName, transactionMode, null) 
- 
getCache
default <K,V> RemoteCache<K,V> getCache(String cacheName, boolean forceReturnValue, TransactionMode transactionMode)
Same asgetCache(cacheName, forceReturnValue, transactionMode, null) 
- 
getCache
default <K,V> RemoteCache<K,V> getCache(String cacheName, TransactionManager transactionManager)
Same asgetCache(cacheName, null, transactionManager) 
- 
getCache
default <K,V> RemoteCache<K,V> getCache(String cacheName, boolean forceReturnValue, TransactionManager transactionManager)
Same asgetCache(cacheName, forceReturnValue, null, transactionManager) 
- 
getCache
<K,V> RemoteCache<K,V> getCache(String cacheName, TransactionMode transactionMode, TransactionManager transactionManager)
- Parameters:
 cacheName- The cache's name.transactionMode- TheTransactionModeto override. Ifnull, it uses the configured value.transactionManager- TheTransactionManagerto override. Ifnull, it uses the configured value.- Returns:
 - the 
RemoteCacheimplementation. 
 
- 
getCache
<K,V> RemoteCache<K,V> getCache(String cacheName, boolean forceReturnValue, TransactionMode transactionMode, TransactionManager transactionManager)
- Parameters:
 cacheName- The cache's name.forceReturnValue-trueto force a return value when it is not needed.transactionMode- TheTransactionModeto override. Ifnull, it uses the configured value.transactionManager- TheTransactionManagerto override. Ifnull, it uses the configured value.- Returns:
 - the 
RemoteCacheimplementation. 
 
- 
isStarted
boolean isStarted()
 
- 
switchToCluster
boolean switchToCluster(String clusterName)
Switch remote cache manager to a different cluster, previously declared via configuration. If the switch was completed successfully, this method returnstrue, otherwise it returnsfalse.- Parameters:
 clusterName- name of the cluster to which to switch to- Returns:
 trueif the cluster was switched,falseotherwise
 
- 
switchToDefaultCluster
boolean switchToDefaultCluster()
Switch remote cache manager to a the default cluster, previously declared via configuration. If the switch was completed successfully, this method returnstrue, otherwise it returnsfalse.- Returns:
 trueif the cluster was switched,falseotherwise
 
- 
getMarshaller
Marshaller getMarshaller()
 
- 
isTransactional
boolean isTransactional(String cacheName)
- Returns:
 trueif the cache with namecacheNamecan participate in transactions.
 
 - 
 
 -