Skip navigation links

Oracle® Coherence Java API Reference
Release 12.1.2.0.3

E26043-02


com.tangosol.net.cache
Class ReadWriteBackingMap.InternalMapListener

java.lang.Object
  extended by com.tangosol.util.Base
      extended by 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  void processDeletedEntry(java.lang.Object oKey, java.lang.Object oValueOld)
          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,
                                   java.lang.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

Skip navigation links

Oracle® Coherence Java API Reference
Release 12.1.2.0.3

E26043-02


Copyright © 2000, 2014, Oracle and/or its affiliates. All rights reserved.