Skip navigation links

Oracle® Fusion Middleware Java API Reference for Oracle Coherence
12c (12.1.3.0.0)

E47890-01


com.tangosol.util
Class MultiplexingMapListener

java.lang.Object
  extended by com.tangosol.util.Base
      extended by com.tangosol.util.MultiplexingMapListener

All Implemented Interfaces:
MapListener, java.util.EventListener
Direct Known Subclasses:
CachingMap.BackMapListener, ContinuousQueryCache.AddListener, ContinuousQueryCache.EventRouter, ContinuousQueryCache.RemoveListener, MapTriggerListener, 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

Skip navigation links

Oracle® Fusion Middleware Java API Reference for Oracle Coherence
12c (12.1.3.0.0)

E47890-01


Copyright © 2000, 2014, Oracle and/or its affiliates. All rights reserved.