Class RestCacheManager<V>


  • public class RestCacheManager<V>
    extends java.lang.Object
    Manages caches instances used during rest requests.
    • Field Detail

      • logger

        protected static final org.infinispan.rest.logging.Log logger
    • Constructor Detail

      • RestCacheManager

        public RestCacheManager​(EmbeddedCacheManager instance,
                                java.util.function.Predicate<? super java.lang.String> isCacheIgnored)
    • Method Detail

      • getCache

        public AdvancedCache<java.lang.Object,​V> getCache​(java.lang.String name,
                                                                MediaType keyContentType,
                                                                MediaType valueContentType,
                                                                javax.security.auth.Subject subject)
      • getCache

        public AdvancedCache<java.lang.Object,​V> getCache​(java.lang.String name,
                                                                javax.security.auth.Subject subject)
      • getPrivilegedInternalEntry

        public CacheEntry<java.lang.Object,​V> getPrivilegedInternalEntry​(AdvancedCache<java.lang.Object,​V> cache,
                                                                               java.lang.Object key,
                                                                               boolean skipListener)
      • getInternalEntry

        public CacheEntry<java.lang.Object,​V> getInternalEntry​(AdvancedCache<java.lang.Object,​V> cache,
                                                                     java.lang.Object key,
                                                                     boolean skipListener)
      • getInternalEntry

        public CacheEntry<java.lang.Object,​V> getInternalEntry​(java.lang.String cacheName,
                                                                     java.lang.Object key,
                                                                     MediaType keyContentType,
                                                                     MediaType mediaType,
                                                                     javax.security.auth.Subject subject)
      • remove

        public void remove​(java.lang.String cacheName,
                           java.lang.Object key,
                           MediaType keyContentType,
                           boolean async,
                           javax.security.auth.Subject subject)
      • getValueConfiguredFormat

        public MediaType getValueConfiguredFormat​(java.lang.String cacheName)
      • getInternalEntry

        public CacheEntry<java.lang.Object,​V> getInternalEntry​(java.lang.String cacheName,
                                                                     java.lang.Object key,
                                                                     boolean skipListener,
                                                                     MediaType keyContentType,
                                                                     MediaType mediaType,
                                                                     javax.security.auth.Subject subject)
      • getNodeName

        public java.lang.String getNodeName()
      • getServerAddress

        public java.lang.String getServerAddress()
      • getPrimaryOwner

        public java.lang.String getPrimaryOwner​(java.lang.String cacheName,
                                                java.lang.Object key)
      • stop

        public void stop()