public interface RemoteCacheContainer extends BasicCacheContainer
Modifier and Type | Method and Description |
---|---|
<K,V> RemoteCache<K,V> |
getCache()
Retrieves the default cache associated with this cache container.
|
default <K,V> RemoteCache<K,V> |
getCache(boolean forceReturnValue)
Deprecated.
since 11.0. Use
ConfigurationBuilder.remoteCache(String) to configure the cache and then getCache(String) to obtain it. |
<K,V> RemoteCache<K,V> |
getCache(String cacheName)
Retrieves a cache by name.
|
default <K,V> RemoteCache<K,V> |
getCache(String cacheName,
boolean forceReturnValue)
Deprecated.
since 11.0. Use
ConfigurationBuilder.remoteCache(String) to configure the cache and then getCache(String) to obtain it. |
default <K,V> RemoteCache<K,V> |
getCache(String cacheName,
boolean forceReturnValue,
TransactionManager transactionManager)
Deprecated.
since 11.0. Use
ConfigurationBuilder.remoteCache(String) to configure the cache and then getCache(String) to obtain it. |
default <K,V> RemoteCache<K,V> |
getCache(String cacheName,
boolean forceReturnValue,
TransactionMode transactionMode)
Deprecated.
since 11.0. Use
ConfigurationBuilder.remoteCache(String) to configure the cache and then getCache(String) to obtain it. |
<K,V> RemoteCache<K,V> |
getCache(String cacheName,
boolean forceReturnValue,
TransactionMode transactionMode,
TransactionManager transactionManager)
Deprecated.
since 11.0. Use
ConfigurationBuilder.remoteCache(String) to configure the cache and then getCache(String) to obtain it. |
default <K,V> RemoteCache<K,V> |
getCache(String cacheName,
TransactionManager transactionManager)
Deprecated.
since 11.0. Use
ConfigurationBuilder.remoteCache(String) to configure the cache and then getCache(String) to obtain it. |
default <K,V> RemoteCache<K,V> |
getCache(String cacheName,
TransactionMode transactionMode)
Deprecated.
since 11.0. Use
ConfigurationBuilder.remoteCache(String) to configure the cache and then getCache(String) to obtain it. |
<K,V> RemoteCache<K,V> |
getCache(String cacheName,
TransactionMode transactionMode,
TransactionManager transactionManager)
Deprecated.
since 11.0. Use
ConfigurationBuilder.remoteCache(String) to configure the cache and then getCache(String) to obtain it. |
Configuration |
getConfiguration()
Retrieves the configuration currently in use.
|
Marshaller |
getMarshaller() |
boolean |
isStarted() |
boolean |
isTransactional(String cacheName) |
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.
|
getCacheNames
<K,V> RemoteCache<K,V> getCache()
BasicCacheContainer
getCache
in interface BasicCacheContainer
BasicCacheContainer.getCache()
<K,V> RemoteCache<K,V> getCache(String cacheName)
BasicCacheContainer
getCache
in interface BasicCacheContainer
cacheName
- name of cache to retrieveBasicCacheContainer.getCache(String)
Configuration getConfiguration()
ConfigurationBuilder builder = new ConfigurationBuilder();
builder.read(remoteCacheManager.getConfiguration());
// modify builder
remoteCacheManager.stop();
remoteCacheManager = new RemoteCacheManager(builder.build());
@Deprecated default <K,V> RemoteCache<K,V> getCache(String cacheName, boolean forceReturnValue)
ConfigurationBuilder.remoteCache(String)
to configure the cache and then getCache(String)
to obtain it.getCache(cacheName, forceReturnValue, null, null)
@Deprecated default <K,V> RemoteCache<K,V> getCache(boolean forceReturnValue)
ConfigurationBuilder.remoteCache(String)
to configure the cache and then getCache(String)
to obtain it.getCache("", forceReturnValue, null, null)
@Deprecated default <K,V> RemoteCache<K,V> getCache(String cacheName, TransactionMode transactionMode)
ConfigurationBuilder.remoteCache(String)
to configure the cache and then getCache(String)
to obtain it.getCache(cacheName, transactionMode, null)
@Deprecated default <K,V> RemoteCache<K,V> getCache(String cacheName, boolean forceReturnValue, TransactionMode transactionMode)
ConfigurationBuilder.remoteCache(String)
to configure the cache and then getCache(String)
to obtain it.getCache(cacheName, forceReturnValue, transactionMode, null)
@Deprecated default <K,V> RemoteCache<K,V> getCache(String cacheName, TransactionManager transactionManager)
ConfigurationBuilder.remoteCache(String)
to configure the cache and then getCache(String)
to obtain it.getCache(cacheName, null, transactionManager)
@Deprecated default <K,V> RemoteCache<K,V> getCache(String cacheName, boolean forceReturnValue, TransactionManager transactionManager)
ConfigurationBuilder.remoteCache(String)
to configure the cache and then getCache(String)
to obtain it.getCache(cacheName, forceReturnValue, null, transactionManager)
@Deprecated <K,V> RemoteCache<K,V> getCache(String cacheName, TransactionMode transactionMode, TransactionManager transactionManager)
ConfigurationBuilder.remoteCache(String)
to configure the cache and then getCache(String)
to obtain it.cacheName
- The cache's name.transactionMode
- The TransactionMode
to override. If null
, it uses the configured value.transactionManager
- The TransactionManager
to override. If null
, it uses the configured value.RemoteCache
implementation.@Deprecated <K,V> RemoteCache<K,V> getCache(String cacheName, boolean forceReturnValue, TransactionMode transactionMode, TransactionManager transactionManager)
ConfigurationBuilder.remoteCache(String)
to configure the cache and then getCache(String)
to obtain it.cacheName
- The cache's name.forceReturnValue
- true
to force a return value when it is not needed.transactionMode
- The TransactionMode
to override. If null
, it uses the configured value.transactionManager
- The TransactionManager
to override. If null
, it uses the configured
value.RemoteCache
implementation.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()
boolean isTransactional(String cacheName)
true
if the cache with name cacheName
can participate in transactions.Copyright © 2021 JBoss by Red Hat. All rights reserved.