Class NullCache<K,V>
- java.lang.Object
-
- org.apache.qpid.server.virtualhost.NullCache<K,V>
-
- All Implemented Interfaces:
com.google.common.cache.Cache<K,V>
public class NullCache<K,V> extends Object implements com.google.common.cache.Cache<K,V>
-
-
Constructor Summary
Constructors Constructor Description NullCache()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConcurrentMap<K,V>
asMap()
void
cleanUp()
V
get(K key, Callable<? extends V> loader)
com.google.common.collect.ImmutableMap<K,V>
getAllPresent(Iterable<?> keys)
V
getIfPresent(Object key)
void
invalidate(Object key)
void
invalidateAll()
void
invalidateAll(Iterable<?> keys)
void
put(K key, V value)
void
putAll(Map<? extends K,? extends V> m)
long
size()
com.google.common.cache.CacheStats
stats()
-
-
-
Method Detail
-
get
public V get(K key, Callable<? extends V> loader) throws ExecutionException
- Specified by:
get
in interfacecom.google.common.cache.Cache<K,V>
- Throws:
ExecutionException
-
invalidate
public void invalidate(Object key)
-
invalidateAll
public void invalidateAll(Iterable<?> keys)
-
invalidateAll
public void invalidateAll()
-
stats
public com.google.common.cache.CacheStats stats()
-
asMap
public ConcurrentMap<K,V> asMap()
-
-