Class RemoteCacheManager

  • All Implemented Interfaces:
    Closeable, AutoCloseable, org.infinispan.client.hotrod.jmx.RemoteCacheManagerMXBean, org.infinispan.client.hotrod.RemoteCacheContainer, org.infinispan.commons.api.BasicCacheContainer, org.infinispan.commons.api.Lifecycle, org.wildfly.clustering.infinispan.client.RemoteCacheContainer

    public class RemoteCacheManager
    extends org.infinispan.client.hotrod.RemoteCacheManager
    implements org.wildfly.clustering.infinispan.client.RemoteCacheContainer
    Extends Infinispan's RemoteCacheManager to provide a name and mechanism for overriding near cache behavior per remote cache.
    Author:
    Paul Ferraro
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.wildfly.clustering.infinispan.client.RemoteCacheContainer

        org.wildfly.clustering.infinispan.client.RemoteCacheContainer.NearCacheRegistration
    • Field Summary

      • Fields inherited from class org.infinispan.client.hotrod.RemoteCacheManager

        channelFactory, HOTROD_CLIENT_PROPERTIES, JSON_STRING_ARRAY_ELEMENT_REGEX, listenerNotifier
    • Constructor Summary

      Constructors 
      Constructor Description
      RemoteCacheManager​(String name, org.infinispan.client.hotrod.configuration.Configuration configuration, org.wildfly.clustering.Registrar<String> registrar)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected <K,​V>
      org.infinispan.client.hotrod.near.NearCacheService<K,​V>
      createNearCacheService​(String cacheName, org.infinispan.client.hotrod.configuration.NearCacheConfiguration config)  
      <K,​V>
      org.infinispan.client.hotrod.RemoteCache<K,​V>
      getCache​(String cacheName, boolean forceReturnValue, org.infinispan.client.hotrod.configuration.TransactionMode transactionMode, javax.transaction.TransactionManager transactionManager)  
      <K,​V>
      org.infinispan.client.hotrod.RemoteCache<K,​V>
      getCache​(String cacheName, org.infinispan.client.hotrod.configuration.TransactionMode transactionMode, javax.transaction.TransactionManager transactionManager)  
      String getName()  
      <K,​V>
      org.wildfly.clustering.infinispan.client.RemoteCacheContainer.NearCacheRegistration
      registerNearCacheFactory​(String cacheName, org.wildfly.clustering.infinispan.client.NearCacheFactory<K,​V> factory)  
      • Methods inherited from class org.infinispan.client.hotrod.RemoteCacheManager

        administration, cacheNameBytes, cacheNameBytes, close, createChannelFactory, getActiveConnectionCount, getAsyncExecutorService, getCache, getCache, getCacheNames, getChannelFactory, getCodec, getConfiguration, getConnectionCount, getIdleConnectionCount, getMarshaller, getMarshallerRegistry, getRetries, getServers, getXaResource, isStarted, isTransactional, start, startAsync, stop, stopAsync, switchToCluster, switchToDefaultCluster
      • 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, getConfiguration, getMarshaller, isStarted, isTransactional, switchToCluster, switchToDefaultCluster
      • Methods inherited from interface org.wildfly.clustering.infinispan.client.RemoteCacheContainer

        administration
      • Methods inherited from interface org.infinispan.client.hotrod.jmx.RemoteCacheManagerMXBean

        getActiveConnectionCount, getConnectionCount, getIdleConnectionCount, getRetries, getServers, switchToCluster, switchToDefaultCluster
    • Constructor Detail

      • RemoteCacheManager

        public RemoteCacheManager​(String name,
                                  org.infinispan.client.hotrod.configuration.Configuration configuration,
                                  org.wildfly.clustering.Registrar<String> registrar)
    • Method Detail

      • getName

        public String getName()
        Specified by:
        getName in interface org.wildfly.clustering.infinispan.client.RemoteCacheContainer
      • getCache

        public <K,​V> org.infinispan.client.hotrod.RemoteCache<K,​V> getCache​(String cacheName,
                                                                                        org.infinispan.client.hotrod.configuration.TransactionMode transactionMode,
                                                                                        javax.transaction.TransactionManager transactionManager)
        Specified by:
        getCache in interface org.infinispan.client.hotrod.RemoteCacheContainer
        Overrides:
        getCache in class org.infinispan.client.hotrod.RemoteCacheManager
      • getCache

        public <K,​V> org.infinispan.client.hotrod.RemoteCache<K,​V> getCache​(String cacheName,
                                                                                        boolean forceReturnValue,
                                                                                        org.infinispan.client.hotrod.configuration.TransactionMode transactionMode,
                                                                                        javax.transaction.TransactionManager transactionManager)
        Specified by:
        getCache in interface org.infinispan.client.hotrod.RemoteCacheContainer
        Overrides:
        getCache in class org.infinispan.client.hotrod.RemoteCacheManager
      • registerNearCacheFactory

        public <K,​V> org.wildfly.clustering.infinispan.client.RemoteCacheContainer.NearCacheRegistration registerNearCacheFactory​(String cacheName,
                                                                                                                                        org.wildfly.clustering.infinispan.client.NearCacheFactory<K,​V> factory)
        Specified by:
        registerNearCacheFactory in interface org.wildfly.clustering.infinispan.client.RemoteCacheContainer
      • createNearCacheService

        protected <K,​V> org.infinispan.client.hotrod.near.NearCacheService<K,​V> createNearCacheService​(String cacheName,
                                                                                                                   org.infinispan.client.hotrod.configuration.NearCacheConfiguration config)
        Overrides:
        createNearCacheService in class org.infinispan.client.hotrod.RemoteCacheManager