public final class NotifyingMemoryStore extends MemoryStore
MemoryStore.BackingFactory
attributeExtractors
CLUSTER_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, unpinAll
addStoreListener, executeQuery, getAll, getAllQuiet, getEventListenerList, getSearchAttribute, isCacheCoherent, isClusterCoherent, isNodeCoherent, putAll, removeAll, removeStoreListener, setAttributeExtractors, setNodeCoherent, waitUntilClusterCoherent
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addStoreListener, executeQuery, getAll, getAllQuiet, getSearchAttribute, isCacheCoherent, isClusterCoherent, isNodeCoherent, putAll, removeAll, removeStoreListener, setAttributeExtractors, setNodeCoherent, waitUntilClusterCoherent
public static NotifyingMemoryStore create(Ehcache cache, Pool pool)
cache
- the cachepool
- the pool tracking the on-heap usageprotected boolean evict(Element element)
evict
in class MemoryStore
element
- the element to be evictedprotected void notifyDirectEviction(Element element)
notifyDirectEviction
in class MemoryStore
element
- the evicted elementpublic void expireElements()
expireElements
in interface Store
expireElements
in class MemoryStore
Copyright © 2003-2013 Terracotta, Inc.. All Rights Reserved.