Class MultiplexingMapListener<K,V>

java.lang.Object
com.tangosol.util.Base
com.tangosol.util.MultiplexingMapListener<K,V>
All Implemented Interfaces:
MapListener<K,V>, EventListener
Direct Known Subclasses:
CachingMap.PrimingListener, CachingMap.SimpleListener, ContinuousQueryCache.AddListener, ContinuousQueryCache.EventRouter, ContinuousQueryCache.InternalMapListener, ContinuousQueryCache.RemoveListener, MapListenerSupport.WrapperListener, MapTriggerListener, OverflowMap.BackMapListener, OverflowMap.FrontMapListener, SimpleOverflowMap.FrontMapListener, WrapperObservableMap.InternalListener

public abstract class MultiplexingMapListener<K,V> extends Base implements MapListener<K,V>
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 Details

    • MultiplexingMapListener

      public MultiplexingMapListener()
  • Method Details

    • onMapEvent

      protected abstract void onMapEvent(MapEvent<K,V> 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<K,V> evt)
      Invoked when a map entry has been inserted.
      Specified by:
      entryInserted in interface MapListener<K,V>
      Parameters:
      evt - the MapEvent carrying the insert information
    • entryUpdated

      public void entryUpdated(MapEvent<K,V> evt)
      Invoked when a map entry has been updated.
      Specified by:
      entryUpdated in interface MapListener<K,V>
      Parameters:
      evt - the MapEvent carrying the update information
    • entryDeleted

      public void entryDeleted(MapEvent<K,V> evt)
      Invoked when a map entry has been removed.
      Specified by:
      entryDeleted in interface MapListener<K,V>
      Parameters:
      evt - the MapEvent carrying the delete information
    • equals

      public boolean equals(Object oThat)
      Overrides:
      equals in class Object