|
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 |
public static interface OldCache.EvictionPolicy
An eviction policy is an object that the cache provides with access information, and when requested, the eviction policy selects and evicts entries from the cache. If the eviction policy needs to be aware of changes to the cache, it must implement the MapListener interface; if it does, it will automatically be registered to receive MapEvents.
Method Summary | |
---|---|
void |
entryTouched(OldCache.Entry entry)
This method is called by the cache to indicate that an entry has been touched. |
void |
requestEviction(int cMaximum)
This method is called by the cache when the cache requires the eviction policy to evict entries. |
Method Detail |
---|
void entryTouched(OldCache.Entry entry)
entry
- the Cache Entry that has been touchedvoid requestEviction(int cMaximum)
cMaximum
- the maximum number of units that should remain
in the cache when the eviction is complete
|
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 |