Overview | Package | Class | Tree | Index | Help

Oracle® Coherence Java API Reference
v3.5.3
E15583-01
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.tangosol.util
Class MapTriggerListener

    java.lang.Object
      com.tangosol.util.Base
          com.tangosol.util.MultiplexingMapListener
              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

Overview | Package | Class | Tree | Index | Help

Oracle® Coherence Java API Reference
v3.5.3
E15583-01
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

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