Class ReadWriteBackingMap.InternalMapListener

java.lang.Object
com.tangosol.util.Base
com.tangosol.net.cache.ReadWriteBackingMap.InternalMapListener
All Implemented Interfaces:
MapListener, 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 Details

    • InternalMapListener

      protected InternalMapListener()
  • Method Details

    • 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(Object oKey, Object oValueOld)
      Process an entry that is about to be removed from the internal cache. This method is called after the entry has been successfully 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!

      Parameters:
      oKey - the key
      oValueOld - the old value
    • dispatch

      protected void dispatch(MapEvent evt)
      Dispatch the event to the corresponding listeners.
      Parameters:
      evt - the MapEvent object