CoherenceTM v3.3
Copyright© 2000-2007 by Oracle Corporation

com.tangosol.util
Class MultiplexingMapListener

java.lang.Object
  extended by com.tangosol.util.Base
      extended by com.tangosol.util.MultiplexingMapListener
All Implemented Interfaces:
MapListener, EventListener
Direct Known Subclasses:
CachingMap.BackMapListener, ContinuousQueryCache.AddListener, ContinuousQueryCache.EventRouter, ContinuousQueryCache.RemoveListener, OverflowMap.BackMapListener, OverflowMap.FrontMapListener, SimpleOverflowMap.FrontMapListener, WrapperObservableMap.InternalListener

public abstract class MultiplexingMapListener
extends Base
implements MapListener

A base class that simplifies the implementation of a MapListener by multiplexing all events into a single listener method.

Since:
Coherence 3.1
Author:
cp 2006.01.19

Constructor Summary
MultiplexingMapListener()
           
 
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.
protected abstract  void onMapEvent(MapEvent evt)
          Invoked when a map entry has been inserted, updated or deleted.
 

Constructor Detail

MultiplexingMapListener

public MultiplexingMapListener()
Method Detail

onMapEvent

protected abstract void onMapEvent(MapEvent evt)
Invoked when a map entry has been inserted, updated or deleted. To determine what action has occurred, use MapEvent.getId().

Parameters:
evt - the MapEvent carrying the insert, update or delete information

entryInserted

public void entryInserted(MapEvent evt)
Invoked when a map entry has been inserted.

Specified by:
entryInserted in interface MapListener
Parameters:
evt - the MapEvent carrying the insert information

entryUpdated

public void entryUpdated(MapEvent evt)
Invoked when a map entry has been updated.

Specified by:
entryUpdated in interface MapListener
Parameters:
evt - the MapEvent carrying the update information

entryDeleted

public void entryDeleted(MapEvent evt)
Invoked when a map entry has been removed.

Specified by:
entryDeleted in interface MapListener
Parameters:
evt - the MapEvent carrying the delete information

CoherenceTM v3.3
Copyright© 2000-2007 by Oracle Corporation