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.net.cache
Class ReadWriteBackingMap.InternalMapListener

    java.lang.Object
      com.tangosol.util.Base
          com.tangosol.net.cache.ReadWriteBackingMap.InternalMapListener

All Implemented Interfaces:
  MapListener, java.util.EventListener

Direct Known Subclasses:
  VersionedBackingMap.InternalMapListener

Enclosing class:
  ReadWriteBackingMap

    protected class ReadWriteBackingMap.InternalMapListener

extends Base
implements MapListener

A MapListener implementation that listens to the internal cache and routes those events to anyone listening to this ReadWriteBackingMap.

Author:
  cp 2002.10.22

Constructor Summary
`protected` | `ReadWriteBackingMap.InternalMapListener()`

Method Summary
`protected void` | `dispatch(MapEvent evt)` Dispatch the event to the corresponding listeners.
`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 java.util.Map` | `getIgnoreMap()` Get the map of keys to ignore events for with the corresponding thread object requesting that the key be ignored.
`protected void` | `processDeletedEntry(java.lang.Object oKey)` Process an entry that is about to be removed from the internal cache.

Constructor Detail

### ReadWriteBackingMap.InternalMapListener

    protected ReadWriteBackingMap.InternalMapListener()

Method Detail

### 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

### processDeletedEntry

    protected void processDeletedEntry(java.lang.Object oKey)

  Process an entry that is about to be removed from the internal cache. This method is called after the entry has been succesfully locked, but before any listeners are notified.

  If the entry is queued to be inserted or updated, then that must occur (be persisted) before we notify any listeners that it has been removed from the internal cache, otherwise (for example) if this server dies and it has the only copy of the pending update then the update will be lost!

### dispatch

    protected void dispatch(MapEvent evt)

  Dispatch the event to the corresponding listeners.

  Parameters:
    `evt` - the MapEvent object

### getIgnoreMap

    protected java.util.Map getIgnoreMap()

  Get the map of keys to ignore events for with the corresponding thread object requesting that the key be ignored.

  Returns:
    the map of keys to ignore

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.