|
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.SeppukuMapListener
public class SeppukuMapListener
A map listener that follows the "seppuku" pattern, invalidating the Map entries when MapEvents for another related ObservableMap are delivered.
Constructor Summary | |
---|---|
SeppukuMapListener(Map map)
Construct a SeppukuMapListener for the specified front map. |
Method Summary | |
---|---|
void |
entryDeleted(MapEvent evt)
Invoked when a map entry has been removed. |
void |
entryInserted(MapEvent evt)
Invoked when a map entry has been inserted. |
void |
entryUpdated(MapEvent evt)
Invoked when a map entry has been updated. |
Map |
getMap()
Returns the front Map invalidated by this listener. |
protected void |
validate(Object oKey,
Object oValue)
Validate the specified entry and remove it from the Map object affected by this listener if and only if the value is different (implying that the entry has been modified elsewhere). |
Constructor Detail |
---|
public SeppukuMapListener(Map map)
map
- the Map object to modify based on events issued to this
Listener from a different ObservableMap objectMethod Detail |
---|
public Map getMap()
public void entryInserted(MapEvent evt)
entryInserted
in interface MapListener
evt
- the MapEventpublic void entryUpdated(MapEvent evt)
entryUpdated
in interface MapListener
evt
- the MapEventpublic void entryDeleted(MapEvent evt)
entryDeleted
in interface MapListener
evt
- the MapEventprotected void validate(Object oKey, Object oValue)
oKey
- the entry keyoValue
- the "new" entry value; this is potentially different
from the one in the map maintained by this Suppuku
listener
|
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 |