Class SpringRemoteCacheManager

  • All Implemented Interfaces:
    org.springframework.cache.CacheManager

    public class SpringRemoteCacheManager
    extends java.lang.Object
    implements org.springframework.cache.CacheManager

    A CacheManager implementation that is backed by an Infinispan RemoteCacheManager instance.

    Author:
    Olaf Bergner, Marius Bogoevici
    • Constructor Detail

      • SpringRemoteCacheManager

        public SpringRemoteCacheManager​(RemoteCacheManager nativeCacheManager,
                                        long readTimeout,
                                        long writeTimeout)
        Parameters:
        nativeCacheManager - the underlying cache manager
      • SpringRemoteCacheManager

        public SpringRemoteCacheManager​(RemoteCacheManager nativeCacheManager)
    • Method Detail

      • getCache

        public SpringCache getCache​(java.lang.String name)
        Specified by:
        getCache in interface org.springframework.cache.CacheManager
        See Also:
        CacheManager.getCache(java.lang.String)
      • getCacheNames

        public java.util.Collection<java.lang.String> getCacheNames()
        Specified by:
        getCacheNames in interface org.springframework.cache.CacheManager
        See Also:
        CacheManager.getCacheNames()
      • getReadTimeout

        public long getReadTimeout()
      • getWriteTimeout

        public long getWriteTimeout()
      • setReadTimeout

        public void setReadTimeout​(long readTimeout)
      • setWriteTimeout

        public void setWriteTimeout​(long writeTimeout)