Interface CacheContainer

    • Field Summary

      • Fields inherited from interface org.infinispan.commons.api.BasicCacheContainer

        DEFAULT_CACHE_NAME
    • Method Summary

      All Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method Description
      default org.infinispan.commons.api.CacheContainerAdmin<?,​?> administration()
      Provides access to administrative methods which affect the underlying cache container, such as cache creation and removal.
      <K,​V>
      Cache<K,​V>
      getCache()
      This method overrides the underlying getCache(), to return a Cache instead of a BasicCache
      <K,​V>
      Cache<K,​V>
      getCache​(String cacheName)
      This method overrides the underlying getCache(String), to return a Cache instead of a BasicCache
      • Methods inherited from interface org.infinispan.commons.api.BasicCacheContainer

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

        start, stop
    • Method Detail

      • getCache

        <K,​V> Cache<K,​V> getCache()
        This method overrides the underlying getCache(), to return a Cache instead of a BasicCache
        Specified by:
        getCache in interface org.infinispan.commons.api.BasicCacheContainer
        Returns:
        the default cache.
      • getCache

        <K,​V> Cache<K,​V> getCache​(String cacheName)
        This method overrides the underlying getCache(String), to return a Cache instead of a BasicCache
        Specified by:
        getCache in interface org.infinispan.commons.api.BasicCacheContainer
        Parameters:
        cacheName - name of cache to retrieve
        Returns:
        a cache instance identified by cacheName
      • administration

        default org.infinispan.commons.api.CacheContainerAdmin<?,​?> administration()
        Provides access to administrative methods which affect the underlying cache container, such as cache creation and removal. If the underlying container is clustered or remote, the operations will affect all nodes.
        Returns: