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.RemoteCacheManagerMXBean
    Extends Infinispan's org.wildfly.clustering.infinispan.client.client.hotrod.RemoteCacheContainer additionally 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
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      org.infinispan.client.hotrod.RemoteCacheManagerAdmin administration()
      Returns administration utility to administer (create, remove or reindex) caches.
      String getName()
      Returns the name of this remote cache container.
      <K,​V>
      RemoteCacheContainer.NearCacheRegistration
      registerNearCacheFactory​(String cacheName, NearCacheFactory<K,​V> factory)
      Registers a factory for creating a near cache for a given cache.
      • Methods inherited from interface org.infinispan.commons.api.BasicCacheContainer

        getCacheNames
      • Methods inherited from interface org.infinispan.commons.api.Lifecycle

        start, stop
      • Methods inherited from interface org.infinispan.client.hotrod.RemoteCacheContainer

        getCache, getCache, getCache, getCache, getCache, getCache, getCache, getCache, getCache, getCache, getConfiguration, getMarshaller, isStarted, isTransactional, switchToCluster, switchToDefaultCluster
      • Methods inherited from interface org.infinispan.client.hotrod.jmx.RemoteCacheManagerMXBean

        getActiveConnectionCount, getConnectionCount, getIdleConnectionCount, getRetries, getServers, switchToCluster, switchToDefaultCluster
    • 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 key
        V - the cache value
        Parameters:
        cacheName - the name of a remote cache
        factory - a factory for creating a near cache
        Returns:
        A near cache registration, which, when closed, unregisters the registered factory.