java.lang.Object
org.wildfly.clustering.spring.context.cache.AbstractCacheManager
org.wildfly.clustering.spring.context.infinispan.embedded.cache.InfinispanCacheManager
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.cache.CacheManager, org.springframework.context.EnvironmentAware, org.springframework.context.ResourceLoaderAware

public class InfinispanCacheManager extends org.wildfly.clustering.spring.context.cache.AbstractCacheManager
A Spring Cache backed by an embedded Infinispan cache.
Author:
Paul Ferraro
  • Constructor Summary

    Constructors
    Constructor
    Description
    InfinispanCacheManager(org.infinispan.manager.CacheContainer container, BiFunction<org.springframework.core.env.Environment,org.springframework.core.io.ResourceLoader,org.wildfly.clustering.marshalling.ByteBufferMarshaller> marshallerFactory)
    Creates a new cache manager from the specified embedded Infinispan cache container.
  • Method Summary

    Modifier and Type
    Method
    Description
    @Nullable org.springframework.cache.Cache
     

    Methods inherited from class org.wildfly.clustering.spring.context.cache.AbstractCacheManager

    getCacheNames, getMarshaller, setEnvironment, setResourceLoader

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.springframework.cache.CacheManager

    resetCaches
  • Constructor Details

    • InfinispanCacheManager

      public InfinispanCacheManager(org.infinispan.manager.CacheContainer container, BiFunction<org.springframework.core.env.Environment,org.springframework.core.io.ResourceLoader,org.wildfly.clustering.marshalling.ByteBufferMarshaller> marshallerFactory)
      Creates a new cache manager from the specified embedded Infinispan cache container.
      Parameters:
      container - a cache container
      marshallerFactory - a cache entry marshaller
  • Method Details

    • getCache

      public @Nullable org.springframework.cache.Cache getCache(String name)