Class RestCacheManager<V>


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

      • logger

        protected static final Log logger
    • Constructor Detail

      • RestCacheManager

        public RestCacheManager​(org.infinispan.manager.EmbeddedCacheManager instance,
                                Predicate<? super String> isCacheIgnored)
    • Method Detail

      • getCache

        public org.infinispan.AdvancedCache<Object,​V> getCache​(String name,
                                                                     org.infinispan.commons.dataconversion.MediaType keyContentType,
                                                                     org.infinispan.commons.dataconversion.MediaType valueContentType,
                                                                     RestRequest request)
      • cacheExists

        public boolean cacheExists​(String name)
      • isCacheQueryable

        public boolean isCacheQueryable​(org.infinispan.Cache<?,​?> cache)
      • getInternalEntry

        public CompletionStage<org.infinispan.container.entries.CacheEntry<Object,​V>> getInternalEntry​(String cacheName,
                                                                                                             Object key,
                                                                                                             org.infinispan.commons.dataconversion.MediaType keyContentType,
                                                                                                             org.infinispan.commons.dataconversion.MediaType mediaType,
                                                                                                             RestRequest request)
      • getPrivilegedInternalEntry

        public CompletionStage<org.infinispan.container.entries.CacheEntry<Object,​V>> getPrivilegedInternalEntry​(org.infinispan.AdvancedCache<Object,​V> cache,
                                                                                                                       Object key,
                                                                                                                       boolean skipListener)
      • getValueConfiguredFormat

        public org.infinispan.commons.dataconversion.MediaType getValueConfiguredFormat​(String cacheName,
                                                                                        RestRequest restRequest)
      • getNodeName

        public String getNodeName()
      • getServerAddress

        public String getServerAddress()
      • getInstance

        public org.infinispan.manager.EmbeddedCacheManager getInstance()
      • getAuthorizer

        public org.infinispan.security.impl.Authorizer getAuthorizer()
      • getCacheManagerAdmin

        public org.infinispan.manager.EmbeddedCacheManagerAdmin getCacheManagerAdmin​(RestRequest restRequest)
      • stop

        public void stop()
      • resetCacheInfo

        public void resetCacheInfo​(String cacheName)