Interface RemoteCacheContainer

All Superinterfaces:
org.infinispan.commons.api.BasicCacheContainer, org.infinispan.commons.api.Lifecycle
All Known Implementing Classes:
RemoteCacheManager

public interface RemoteCacheContainer extends org.infinispan.commons.api.BasicCacheContainer
  • Method Details

    • getCache

      <K,V> RemoteCache<K,V> getCache()
      Specified by:
      getCache in interface org.infinispan.commons.api.BasicCacheContainer
      See Also:
      • BasicCacheContainer.getCache()
    • getCache

      <K,V> RemoteCache<K,V> getCache(String cacheName)
      Specified by:
      getCache in interface org.infinispan.commons.api.BasicCacheContainer
      See Also:
      • BasicCacheContainer.getCache(String)
    • 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
    • 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 returns true, otherwise it returns false.
      Parameters:
      clusterName - name of the cluster to which to switch to
      Returns:
      true if the cluster was switched, false otherwise
    • switchToDefaultCluster

      boolean switchToDefaultCluster()
      Switch remote cache manager to the default cluster, previously declared via configuration. If the switch was completed successfully, this method returns true, otherwise it returns false.
      Returns:
      true if the cluster was switched, false otherwise
    • getCurrentClusterName

      String getCurrentClusterName()
      Returns the name of the currently active cluster.
      Returns:
      the name of the active cluster
    • getMarshaller

      org.infinispan.commons.marshall.Marshaller getMarshaller()
    • isTransactional

      boolean isTransactional(String cacheName)
      Returns:
      true if the cache with name cacheName can participate in transactions.
    • administration

      RemoteCacheManagerAdmin administration()