Oracle® Coherence Java API Reference
v3.5

E14977-01

com.tangosol.util
Class MapTriggerListener

java.lang.Object
  extended by com.tangosol.util.Base
      extended by com.tangosol.util.MultiplexingMapListener
          extended by com.tangosol.util.MapTriggerListener
All Implemented Interfaces:
MapListener, java.util.EventListener

public class MapTriggerListener
extends MultiplexingMapListener

MapTriggerListener is a special purpose MapListener implementation that is used to register a MapTrigger on a corresponding ObservableMap.

Note: Currently, the MapTriggerListener can only be registered with partitioned caches and only "globally" (without specifying any filter or key), using the ObservableMap.addMapListener(MapListener) method.

Since:
Coherence 3.4
Author:
cp/gg 2008.03.11

Constructor Summary
MapTriggerListener(MapTrigger trigger)
          Construct a MapTriggerListener that can be used to register the specified MapTrigger.
 
Method Summary
 MapTrigger getTrigger()
          Obtain the MapTrigger agent represented by this TriggerListener.
protected  void onMapEvent(MapEvent evt)
          Invoked when a map entry has been inserted, updated or deleted.
 
Methods inherited from class com.tangosol.util.MultiplexingMapListener
entryDeleted, entryInserted, entryUpdated
 

Constructor Detail

MapTriggerListener

public MapTriggerListener(MapTrigger trigger)
Construct a MapTriggerListener that can be used to register the specified MapTrigger.

Parameters:
trigger - the MapTrigger
Method Detail

getTrigger

public MapTrigger getTrigger()
Obtain the MapTrigger agent represented by this TriggerListener.

Returns:
the MapTrigger agent represented by this TriggerListener

onMapEvent

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

Specified by:
onMapEvent in class MultiplexingMapListener
Parameters:
evt - the MapEvent carrying the insert, update or delete information

Oracle® Coherence Java API Reference
v3.5

E14977-01

Copyright © 2000, 2009, Oracle. All rights reserved.