|
CoherenceTM v3.3 Copyright© 2000-2007 by Oracle Corporation |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.tangosol.util.Base
com.tangosol.net.cache.AbstractEvictionPolicy
public abstract class AbstractEvictionPolicy
An abstract base class for custom cache eviction policies.
Constructor Summary | |
---|---|
AbstractEvictionPolicy()
|
Method Summary | |
---|---|
protected LocalCache |
ensureLocalCache(MapEvent evt)
Return the LocalCache that uses this eviction policy. |
void |
entryDeleted(MapEvent evt)
Invoked when a map entry has been removed. |
void |
entryInserted(MapEvent evt)
Invoked when a map entry has been inserted. |
abstract void |
entryTouched(OldCache.Entry entry)
This method is called by the cache to indicate that an entry has been touched. |
void |
entryUpdated(MapEvent evt)
Invoked when a map entry has been updated. |
abstract void |
entryUpdated(OldCache.Entry entry)
This method is called to indicate that an entry has been either inserted or updated. |
protected OldCache.Entry |
getEntry(MapEvent evt)
Return the map entry associated with the given map event. |
protected LocalCache |
getLocalCache()
Return the LocalCache that uses this eviction policy. |
abstract void |
requestEviction(int cMaximum)
This method is called by the cache when the cache requires the eviction policy to evict entries. |
Constructor Detail |
---|
public AbstractEvictionPolicy()
Method Detail |
---|
public abstract void entryTouched(OldCache.Entry entry)
entryTouched
in interface OldCache.EvictionPolicy
entry
- the Cache Entry that has been touchedpublic abstract void entryUpdated(OldCache.Entry entry)
entry
- the Cache Entry that has been updatedpublic abstract void requestEviction(int cMaximum)
requestEviction
in interface OldCache.EvictionPolicy
cMaximum
- the maximum number of units that should remain
in the cache when the eviction is completepublic void entryInserted(MapEvent evt)
entryInserted
in interface MapListener
evt
- the MapEvent carrying the insert informationpublic void entryUpdated(MapEvent evt)
entryUpdated
in interface MapListener
evt
- the MapEvent carrying the update informationpublic void entryDeleted(MapEvent evt)
entryDeleted
in interface MapListener
evt
- the MapEvent carrying the delete informationprotected LocalCache ensureLocalCache(MapEvent evt)
evt
- the MapEvent raised by the LocalCache that uses this
eviction policy
protected OldCache.Entry getEntry(MapEvent evt)
evt
- a map event raised by the LocalCache that uses this eviction
policy
protected LocalCache getLocalCache()
ensureLocalCache
|
CoherenceTM v3.3 Copyright© 2000-2007 by Oracle Corporation |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |