|
Oracle® Coherence Java API Reference Release 3.6.0.0 E15725-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
com.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 ConfigurableCacheMap |
ensureCache(MapEvent evt) Return the ConfigurableCacheMap 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 |
entryUpdated(ConfigurableCacheMap.Entry entry) This method is called to indicate that an entry has been either inserted or updated. |
void |
entryUpdated(MapEvent evt) Invoked when a map entry has been updated. |
protected ConfigurableCacheMap |
getCache() Return the ConfigurableCacheMap that uses this eviction policy. |
protected ConfigurableCacheMap.Entry |
getEntry(MapEvent evt) Return the map entry associated with the given map event. |
String |
getName() Obtain the name of the eviction policy. |
Methods inherited from interface com.tangosol.net.cache.ConfigurableCacheMap.EvictionPolicy |
---|
entryTouched, requestEviction |
Constructor Detail |
---|
public AbstractEvictionPolicy()
Method Detail |
---|
public String getName()
getName
in interface ConfigurableCacheMap.EvictionPolicy
public 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 informationpublic abstract void entryUpdated(ConfigurableCacheMap.Entry entry)
entry
- the Entry that has been inserted or updatedprotected ConfigurableCacheMap ensureCache(MapEvent evt)
evt
- the MapEvent raised by the ConfigurableCacheMap that uses this eviction policyprotected ConfigurableCacheMap.Entry getEntry(MapEvent evt)
evt
- a map event raised by the cache that uses this eviction policyprotected ConfigurableCacheMap getCache()
|
Oracle® Coherence Java API Reference Release 3.6.0.0 E15725-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |