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 MultiplexingMapListener

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

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.