public interface Cache<K,V> extends Iterable<Cache.Entry<K,V>>, Closeable
Modifier and Type | Interface and Description |
---|---|
static interface |
Cache.Entry<K,V> |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
void |
close() |
boolean |
containsKey(K key) |
void |
deregisterCacheEntryListener(CacheEntryListenerConfiguration<K,V> cacheEntryListenerConfiguration) |
V |
get(K key) |
Map<K,V> |
getAll(Set<? extends K> keys) |
V |
getAndPut(K key,
V value) |
V |
getAndRemove(K key) |
V |
getAndReplace(K key,
V value) |
CacheManager |
getCacheManager() |
<C extends Configuration<K,V>> |
getConfiguration(Class<C> clazz) |
String |
getName() |
<T> T |
invoke(K key,
EntryProcessor<K,V,T> entryProcessor,
Object... arguments) |
<T> Map<K,EntryProcessorResult<T>> |
invokeAll(Set<? extends K> keys,
EntryProcessor<K,V,T> entryProcessor,
Object... arguments) |
boolean |
isClosed() |
Iterator<Cache.Entry<K,V>> |
iterator() |
void |
loadAll(Set<? extends K> keys,
boolean replaceExistingValues,
CompletionListener completionListener) |
void |
put(K key,
V value) |
void |
putAll(Map<? extends K,? extends V> map) |
boolean |
putIfAbsent(K key,
V value) |
void |
registerCacheEntryListener(CacheEntryListenerConfiguration<K,V> cacheEntryListenerConfiguration) |
boolean |
remove(K key) |
boolean |
remove(K key,
V oldValue) |
void |
removeAll() |
void |
removeAll(Set<? extends K> keys) |
boolean |
replace(K key,
V value) |
boolean |
replace(K key,
V oldValue,
V newValue) |
<T> T |
unwrap(Class<T> clazz) |
forEach, spliterator
boolean containsKey(K key)
void loadAll(Set<? extends K> keys, boolean replaceExistingValues, CompletionListener completionListener)
boolean remove(K key)
void removeAll()
void clear()
<C extends Configuration<K,V>> C getConfiguration(Class<C> clazz)
<T> T invoke(K key, EntryProcessor<K,V,T> entryProcessor, Object... arguments) throws EntryProcessorException
EntryProcessorException
<T> Map<K,EntryProcessorResult<T>> invokeAll(Set<? extends K> keys, EntryProcessor<K,V,T> entryProcessor, Object... arguments)
String getName()
CacheManager getCacheManager()
void close()
close
in interface AutoCloseable
close
in interface Closeable
boolean isClosed()
<T> T unwrap(Class<T> clazz)
void registerCacheEntryListener(CacheEntryListenerConfiguration<K,V> cacheEntryListenerConfiguration)
void deregisterCacheEntryListener(CacheEntryListenerConfiguration<K,V> cacheEntryListenerConfiguration)
Iterator<Cache.Entry<K,V>> iterator()
iterator
in interface Iterable<Cache.Entry<K,V>>
Copyright © 2017. All rights reserved.