Interface RemoteCacheContainer
-
- All Superinterfaces:
org.infinispan.commons.api.BasicCacheContainer,org.infinispan.commons.api.Lifecycle,org.infinispan.client.hotrod.RemoteCacheContainer,org.infinispan.client.hotrod.jmx.RemoteCacheManagerMXBean
public interface RemoteCacheContainer extends org.infinispan.client.hotrod.RemoteCacheContainer, org.infinispan.client.hotrod.jmx.RemoteCacheManagerMXBeanExtends Infinispan'sorg.wildfly.clustering.infinispan.client.client.hotrod.RemoteCacheContaineradditionally exposing the name of the remote cache container, an administration utility, and a mechanism for configuring near caching per remote cache.- Author:
- Radoslav Husar, Paul Ferraro
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceRemoteCacheContainer.NearCacheRegistration
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.infinispan.client.hotrod.RemoteCacheManagerAdminadministration()Returns administration utility to administer (create, remove or reindex) caches.StringgetName()Returns the name of this remote cache container.<K,V>
RemoteCacheContainer.NearCacheRegistrationregisterNearCacheFactory(String cacheName, NearCacheFactory<K,V> factory)Registers a factory for creating a near cache for a given cache.
-
-
-
Method Detail
-
getName
String getName()
Returns the name of this remote cache container.- Returns:
- the remote cache container name
-
administration
org.infinispan.client.hotrod.RemoteCacheManagerAdmin administration()
Returns administration utility to administer (create, remove or reindex) caches.- Returns:
- administration utility
-
registerNearCacheFactory
<K,V> RemoteCacheContainer.NearCacheRegistration registerNearCacheFactory(String cacheName, NearCacheFactory<K,V> factory)
Registers a factory for creating a near cache for a given cache. The returned registration can be closed once the associated cache is created.- Type Parameters:
K- the cache keyV- the cache value- Parameters:
cacheName- the name of a remote cachefactory- a factory for creating a near cache- Returns:
- A near cache registration, which, when closed, unregisters the registered factory.
-
-