Class ReadWriteBackingMap.InternalMapListener

    • Constructor Detail

      • InternalMapListener

        protected 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​(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