public interface Cache<K,V> extends java.lang.Iterable<Cache.Entry<K,V>>, CacheLifecycle
Modifier and Type | Interface and Description |
---|---|
static interface |
Cache.Entry<K,V> |
static interface |
Cache.EntryProcessor<K,V> |
static interface |
Cache.MutableEntry<K,V> |
Modifier and Type | Method and Description |
---|---|
boolean |
containsKey(K key) |
V |
get(java.lang.Object key) |
java.util.Map<K,V> |
getAll(java.util.Set<? extends K> keys) |
V |
getAndPut(K key,
V value) |
V |
getAndRemove(K key) |
V |
getAndReplace(K key,
V value) |
CacheManager |
getCacheManager() |
Configuration<K,V> |
getConfiguration() |
CacheMXBean |
getMBean() |
java.lang.String |
getName() |
CacheStatistics |
getStatistics() |
java.lang.Object |
invokeEntryProcessor(K key,
Cache.EntryProcessor<K,V> entryProcessor) |
java.util.Iterator<Cache.Entry<K,V>> |
iterator() |
java.util.concurrent.Future<V> |
load(K key) |
java.util.concurrent.Future<java.util.Map<K,? extends V>> |
loadAll(java.util.Set<? extends K> keys) |
void |
put(K key,
V value) |
void |
putAll(java.util.Map<? extends K,? extends V> map) |
boolean |
putIfAbsent(K key,
V value) |
boolean |
registerCacheEntryListener(CacheEntryListener<? super K,? super V> listener,
boolean requireOldValue,
CacheEntryEventFilter<? super K,? super V> filter,
boolean synchronous) |
boolean |
remove(K key) |
boolean |
remove(K key,
V oldValue) |
void |
removeAll() |
void |
removeAll(java.util.Set<? extends K> keys) |
boolean |
replace(K key,
V value) |
boolean |
replace(K key,
V oldValue,
V newValue) |
boolean |
unregisterCacheEntryListener(CacheEntryListener<?,?> listener) |
<T> T |
unwrap(java.lang.Class<T> cl) |
getStatus, start, stop
V get(java.lang.Object key)
boolean containsKey(K key)
boolean remove(K key)
void removeAll(java.util.Set<? extends K> keys)
void removeAll()
java.util.concurrent.Future<java.util.Map<K,? extends V>> loadAll(java.util.Set<? extends K> keys)
java.lang.Object invokeEntryProcessor(K key, Cache.EntryProcessor<K,V> entryProcessor)
boolean registerCacheEntryListener(CacheEntryListener<? super K,? super V> listener, boolean requireOldValue, CacheEntryEventFilter<? super K,? super V> filter, boolean synchronous)
boolean unregisterCacheEntryListener(CacheEntryListener<?,?> listener)
java.lang.String getName()
CacheManager getCacheManager()
Configuration<K,V> getConfiguration()
CacheStatistics getStatistics()
java.util.Iterator<Cache.Entry<K,V>> iterator()
iterator
in interface java.lang.Iterable<Cache.Entry<K,V>>
CacheMXBean getMBean()
<T> T unwrap(java.lang.Class<T> cl)