K
- the keyV
- the valuepublic abstract class AbstractCache<K,V> extends Object implements javax.cache.Cache<K,V>
Cache
interface.Modifier | Constructor and Description |
---|---|
protected |
AbstractCache(ConcurrentCacheService concurrentCacheService) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
void |
close() |
boolean |
containsKey(K k) |
void |
deregisterCacheEntryListener(javax.cache.configuration.CacheEntryListenerConfiguration<K,V> cacheEntryListenerConfiguration) |
V |
get(K k) |
Map<K,V> |
getAll(Set<? extends K> set) |
V |
getAndPut(K k,
V v) |
V |
getAndRemove(K k) |
V |
getAndReplace(K k,
V v) |
javax.cache.CacheManager |
getCacheManager() |
<C extends javax.cache.configuration.Configuration<K,V>> |
getConfiguration(Class<C> aClass) |
String |
getName() |
<T> T |
invoke(K k,
javax.cache.processor.EntryProcessor<K,V,T> entryProcessor,
Object... objects) |
<T> Map<K,javax.cache.processor.EntryProcessorResult<T>> |
invokeAll(Set<? extends K> set,
javax.cache.processor.EntryProcessor<K,V,T> entryProcessor,
Object... objects) |
boolean |
isClosed() |
Iterator<javax.cache.Cache.Entry<K,V>> |
iterator() |
void |
loadAll(Set<? extends K> set,
boolean b,
javax.cache.integration.CompletionListener completionListener) |
void |
put(K k,
V v) |
void |
putAll(Map<? extends K,? extends V> map) |
boolean |
putIfAbsent(K k,
V v) |
void |
registerCacheEntryListener(javax.cache.configuration.CacheEntryListenerConfiguration<K,V> cacheEntryListenerConfiguration) |
boolean |
remove(K k) |
boolean |
remove(K k,
V v) |
void |
removeAll() |
void |
removeAll(Set<? extends K> set) |
boolean |
replace(K k,
V v) |
boolean |
replace(K k,
V v,
V v1) |
protected void |
setCache(javax.cache.Cache<K,V> cache) |
<T> T |
unwrap(Class<T> aClass) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
protected AbstractCache(@Nonnull ConcurrentCacheService concurrentCacheService)
public boolean containsKey(K k)
public void loadAll(Set<? extends K> set, boolean b, javax.cache.integration.CompletionListener completionListener)
public <C extends javax.cache.configuration.Configuration<K,V>> C getConfiguration(Class<C> aClass)
public <T> T invoke(K k, javax.cache.processor.EntryProcessor<K,V,T> entryProcessor, Object... objects) throws javax.cache.processor.EntryProcessorException
public <T> Map<K,javax.cache.processor.EntryProcessorResult<T>> invokeAll(Set<? extends K> set, javax.cache.processor.EntryProcessor<K,V,T> entryProcessor, Object... objects)
public javax.cache.CacheManager getCacheManager()
public void close()
public <T> T unwrap(Class<T> aClass)
public void registerCacheEntryListener(javax.cache.configuration.CacheEntryListenerConfiguration<K,V> cacheEntryListenerConfiguration)
public void deregisterCacheEntryListener(javax.cache.configuration.CacheEntryListenerConfiguration<K,V> cacheEntryListenerConfiguration)
Copyright © 2020. All Rights Reserved.