public abstract class BaseCache<K,V> extends Object implements InternalCache<K,V>
| Constructor and Description |
|---|
BaseCache() |
| Modifier and Type | Method and Description |
|---|---|
ConcurrentMap<K,V> |
asMap() |
void |
clearAndClose() |
void |
closeCustomization(Object _customization,
String _customizationName)
Call close on the customization if the
Closeable interface
is implemented |
<T> T |
createCustomization(org.cache2k.configuration.CustomizationSupplier<T> f)
Calls factory and wraps exceptions.
|
protected abstract <R> EntryAction<K,V,R> |
createEntryAction(K key,
Entry<K,V> e,
Semantic<K,V,R> op) |
Iterable<org.cache2k.CacheEntry<K,V>> |
entries() |
protected <R> R |
execute(K key,
Entry<K,V> e,
Semantic<K,V,R> op) |
protected <R> R |
execute(K key,
Semantic<K,V,R> op) |
protected <R> R |
execute(Semantic<K,V,R> op,
EntryAction<K,V,R> _action) |
StorageAdapter |
getStorage() |
<R> Map<K,org.cache2k.processor.EntryProcessingResult<R>> |
invokeAll(Iterable<? extends K> keys,
org.cache2k.processor.EntryProcessor<K,V,R> entryProcessor) |
protected abstract Iterator<org.cache2k.CacheEntry<K,V>> |
iterator() |
Iterable<K> |
keys()
Key iteration on top of normal iterator.
|
static String |
nameQualifier(org.cache2k.Cache cache) |
void |
removeAll() |
void |
removeAll(Iterable<? extends K> _keys) |
<X> X |
requestInterface(Class<X> _type) |
String |
toString()
Return status information.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcancelTimerJobs, expireOrScheduleFinalExpireEvent, getClock, getCommonMetrics, getEntryState, getInfo, getKeyType, getLatestInfo, getLog, getTotalEntryCount, getValueType, isNullValuePermitted, logAndCountInternalException, returnCacheEntry, timerEventExpireEntry, timerEventProbationTerminated, timerEventRefreshclear, close, computeIfAbsent, containsAndRemove, containsKey, expireAt, get, getAll, getCacheManager, getEntry, getName, invoke, isClosed, loadAll, peek, peekAll, peekAndPut, peekAndRemove, peekAndReplace, peekEntry, prefetch, prefetchAll, put, putAll, putIfAbsent, reloadAll, remove, removeIfEquals, replace, replaceIfEqualscheckIntegritypublic <X> X requestInterface(Class<X> _type)
public ConcurrentMap<K,V> asMap()
public StorageAdapter getStorage()
getStorage in interface InternalCache<K,V>public <R> Map<K,org.cache2k.processor.EntryProcessingResult<R>> invokeAll(Iterable<? extends K> keys, org.cache2k.processor.EntryProcessor<K,V,R> entryProcessor)
protected abstract <R> EntryAction<K,V,R> createEntryAction(K key, Entry<K,V> e, Semantic<K,V,R> op)
public <T> T createCustomization(org.cache2k.configuration.CustomizationSupplier<T> f)
InternalCachecreateCustomization in interface InternalCache<K,V>f - factory or null. If null, then null is returned.public void closeCustomization(Object _customization, String _customizationName)
InternalCacheCloseable interface
is implementedcloseCustomization in interface InternalCache<K,V>public void clearAndClose()
cache2k API documentation. Copyright © 2000–2019 headissue GmbH, Munich.