public final class NotifyingMemoryStore extends MemoryStore
MemoryStore.BackingFactoryattributeExtractorsCLUSTER_COHERENT, NODE_COHERENT| Modifier and Type | Method and Description |
|---|---|
static NotifyingMemoryStore |
create(Ehcache cache,
Pool pool)
A factory method to create a MemoryStore.
|
protected boolean |
evict(Element element)
Evicts the element from the store
|
void |
expireElements()
Expire all elements.
|
protected void |
notifyDirectEviction(Element element)
Called when an element is evicted even before it could be installed inside the store
|
bufferFull, canPutWithoutEvicting, containsKey, containsKeyInMemory, containsKeyOffHeap, containsKeyOnDisk, deregistered, diskCapacityChanged, dispose, elementSet, evictFromOnDisk, evictFromOnHeap, expireElement, fill, flush, get, getApproximateDiskByteSize, getApproximateDiskCountSize, getApproximateDiskHitRate, getApproximateDiskMissRate, getApproximateHeapByteSize, getApproximateHeapCountSize, getApproximateHeapHitRate, getApproximateHeapMissRate, getInitialCapacityForLoadFactor, getInMemoryEvictionPolicy, getInMemorySize, getInMemorySizeInBytes, getInternalContext, getKeys, getMBean, getOffHeapSize, getOffHeapSizeInBytes, getOnDiskSize, getOnDiskSizeInBytes, getPresentPinnedKeys, getQuiet, getSize, getStatus, getTerracottaClusteredSize, hasAbortedSizeOf, isFull, isPersistent, isPinned, isTierPinned, keySet, loggingChanged, maxBytesLocalDiskChanged, maxBytesLocalHeapChanged, memoryCapacityChanged, put, putIfAbsent, putWithWriter, recalculateSize, registered, remove, removeAll, removeElement, removeIfNotPinned, removeNoReturn, removeWithWriter, replace, replace, setInMemoryEvictionPolicy, setPinned, timeToIdleChanged, timeToLiveChanged, unpinAlladdStoreListener, executeQuery, getAll, getAllQuiet, getEventListenerList, getSearchAttribute, isCacheCoherent, isClusterCoherent, isNodeCoherent, putAll, removeAll, removeStoreListener, setAttributeExtractors, setNodeCoherent, waitUntilClusterCoherentclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddStoreListener, executeQuery, getAll, getAllQuiet, getSearchAttribute, isCacheCoherent, isClusterCoherent, isNodeCoherent, putAll, removeAll, removeStoreListener, setAttributeExtractors, setNodeCoherent, waitUntilClusterCoherentpublic static NotifyingMemoryStore create(Ehcache cache, Pool pool)
cache - the cachepool - the pool tracking the on-heap usageprotected boolean evict(Element element)
evict in class MemoryStoreelement - the element to be evictedprotected void notifyDirectEviction(Element element)
notifyDirectEviction in class MemoryStoreelement - the evicted elementpublic void expireElements()
expireElements in interface StoreexpireElements in class MemoryStoreCopyright © 2003-2014 Terracotta, Inc.. All Rights Reserved.