|
ehcache | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.ehcache.store.AbstractStore
net.sf.ehcache.store.MemoryStore
net.sf.ehcache.store.NotifyingMemoryStore
public final class NotifyingMemoryStore
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class net.sf.ehcache.store.MemoryStore |
|---|
MemoryStore.BackingFactory |
| Field Summary |
|---|
| Fields inherited from class net.sf.ehcache.store.AbstractStore |
|---|
attributeExtractors |
| Fields inherited from interface net.sf.ehcache.store.Store |
|---|
CLUSTER_COHERENT, NODE_COHERENT |
| Method Summary | |
|---|---|
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 |
| Methods inherited from class net.sf.ehcache.store.AbstractStore |
|---|
addStoreListener, executeQuery, getAll, getAllQuiet, getEventListenerList, getSearchAttribute, isCacheCoherent, isClusterCoherent, isNodeCoherent, putAll, removeAll, removeStoreListener, setAttributeExtractors, setNodeCoherent, waitUntilClusterCoherent |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface net.sf.ehcache.store.Store |
|---|
addStoreListener, executeQuery, getAll, getAllQuiet, getSearchAttribute, isCacheCoherent, isClusterCoherent, isNodeCoherent, putAll, removeAll, removeStoreListener, setAttributeExtractors, setNodeCoherent, waitUntilClusterCoherent |
| Method Detail |
|---|
public static NotifyingMemoryStore create(Ehcache cache,
Pool pool)
cache - the cachepool - the pool tracking the on-heap usage
protected boolean evict(Element element)
evict in class MemoryStoreelement - the element to be evicted
protected void notifyDirectEviction(Element element)
notifyDirectEviction in class MemoryStoreelement - the evicted elementpublic void expireElements()
expireElements in interface StoreexpireElements in class MemoryStore
|
ehcache | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||