public interface InternalCache<K,V> extends Cache<K,V>, CanCheckIntegrity
Modifier and Type | Method and Description |
---|---|
void |
cancelTimerJobs()
used from the cache manager for shutdown
|
void |
closeCustomization(Object _customization)
Call close on the customization if the
Closeable interface
is implemented |
<T> T |
createCustomization(CustomizationSupplier<T> f)
Calls factory and wraps exceptions.
|
void |
expireOrScheduleFinalExpireEvent(Entry<K,V> e) |
InternalClock |
getClock()
Time reference for the cache.
|
CommonMetrics |
getCommonMetrics() |
String |
getEntryState(K key) |
InternalCacheInfo |
getInfo()
Generate cache statistics.
|
CacheType |
getKeyType() |
InternalCacheInfo |
getLatestInfo()
Generate fresh statistics.
|
Log |
getLog()
used from the cache manager
|
String |
getName() |
StorageAdapter |
getStorage() |
StorageMetrics |
getStorageMetrics()
Return storage metrics if storage attached.
|
int |
getTotalEntryCount() |
CacheType |
getValueType() |
boolean |
isNullValuePermitted() |
void |
logAndCountInternalException(String s,
Throwable t) |
CacheEntry<K,V> |
replaceOrGet(K key,
V _oldValue,
V _newValue,
CacheEntry<K,V> _dummyEntry)
Used by JCache impl, since access needs to trigger the TTI maybe use EP instead?
|
void |
timerEventExpireEntry(Entry<K,V> e) |
void |
timerEventProbationTerminated(Entry<K,V> e) |
void |
timerEventRefresh(Entry<K,V> e) |
asMap, clear, clearAndClose, close, computeIfAbsent, containsAndRemove, containsKey, entries, expireAt, get, getAll, getCacheManager, getEntry, getSimpleEntry, invoke, invokeAll, isClosed, keys, loadAll, peek, peekAll, peekAndPut, peekAndRemove, peekAndReplace, peekEntry, peekSimpleEntry, prefetch, prefetchAll, put, putAll, putIfAbsent, reloadAll, remove, removeAll, removeAll, removeIfEquals, replace, replaceIfEquals, requestInterface, toString
checkIntegrity
CommonMetrics getCommonMetrics()
Log getLog()
StorageAdapter getStorage()
CacheType getKeyType()
CacheType getValueType()
void cancelTimerJobs()
InternalCacheInfo getInfo()
InternalCacheInfo getLatestInfo()
getInfo()
method for requesting information for monitoring.CacheEntry<K,V> replaceOrGet(K key, V _oldValue, V _newValue, CacheEntry<K,V> _dummyEntry)
int getTotalEntryCount()
StorageMetrics getStorageMetrics()
boolean isNullValuePermitted()
<T> T createCustomization(CustomizationSupplier<T> f)
f
- factory or null. If null, then null is returned.void closeCustomization(Object _customization)
Closeable
interface
is implementedInternalClock getClock()
cache2k API documentation. Copyright © 2000–2018 headissue GmbH, Munich.