Package org.infinispan.rest.cachemanager
Class RestCacheManager<V>
- java.lang.Object
-
- org.infinispan.rest.cachemanager.RestCacheManager<V>
-
public class RestCacheManager<V> extends java.lang.ObjectManages caches instances used during rest requests.
-
-
Field Summary
Fields Modifier and Type Field Description protected static org.infinispan.rest.logging.Loglogger
-
Constructor Summary
Constructors Constructor Description RestCacheManager(EmbeddedCacheManager instance, java.util.function.Predicate<? super java.lang.String> isCacheIgnored)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AdvancedCache<java.lang.Object,V>getCache(java.lang.String name, javax.security.auth.Subject subject)AdvancedCache<java.lang.Object,V>getCache(java.lang.String name, MediaType keyContentType, MediaType valueContentType, javax.security.auth.Subject subject)EmbeddedCacheManagergetInstance()java.util.concurrent.CompletionStage<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)java.util.concurrent.CompletionStage<CacheEntry<java.lang.Object,V>>getInternalEntry(java.lang.String cacheName, java.lang.Object key, MediaType keyContentType, MediaType mediaType, javax.security.auth.Subject subject)java.util.concurrent.CompletionStage<CacheEntry<java.lang.Object,V>>getInternalEntry(AdvancedCache<java.lang.Object,V> cache, java.lang.Object key, boolean skipListener)java.lang.StringgetNodeName()java.lang.StringgetPrimaryOwner(java.lang.String cacheName, java.lang.Object key)java.util.concurrent.CompletionStage<CacheEntry<java.lang.Object,V>>getPrivilegedInternalEntry(AdvancedCache<java.lang.Object,V> cache, java.lang.Object key, boolean skipListener)java.lang.StringgetServerAddress()MediaTypegetValueConfiguredFormat(java.lang.String cacheName)java.util.concurrent.CompletionStage<V>remove(java.lang.String cacheName, java.lang.Object key, MediaType keyContentType, javax.security.auth.Subject subject)voidstop()
-
-
-
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)
-
getInternalEntry
public java.util.concurrent.CompletionStage<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 java.util.concurrent.CompletionStage<V> remove(java.lang.String cacheName, java.lang.Object key, MediaType keyContentType, javax.security.auth.Subject subject)
-
getPrivilegedInternalEntry
public java.util.concurrent.CompletionStage<CacheEntry<java.lang.Object,V>> getPrivilegedInternalEntry(AdvancedCache<java.lang.Object,V> cache, java.lang.Object key, boolean skipListener)
-
getInternalEntry
public java.util.concurrent.CompletionStage<CacheEntry<java.lang.Object,V>> getInternalEntry(AdvancedCache<java.lang.Object,V> cache, java.lang.Object key, boolean skipListener)
-
getValueConfiguredFormat
public MediaType getValueConfiguredFormat(java.lang.String cacheName)
-
getInternalEntry
public java.util.concurrent.CompletionStage<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)
-
getInstance
public EmbeddedCacheManager getInstance()
-
stop
public void stop()
-
-