Class PassThroughMapListenerAdapter<K,V>

java.lang.Object
com.tangosol.coherence.jcache.passthroughcache.PassThroughMapListenerAdapter<K,V>
Type Parameters:
K - the type of the Cache keys
V - the type of the Cache values
All Implemented Interfaces:
MapListener, EventListener

public class PassThroughMapListenerAdapter<K,V> extends Object implements MapListener
An internal MapListener implementation that delegates MapEvents onto a CacheEntryListener.
Since:
Coherence 12.1.3
Author:
bo 2013.11.01
  • Constructor Details

    • PassThroughMapListenerAdapter

      public PassThroughMapListenerAdapter(javax.cache.Cache<K,V> cache, javax.cache.event.CacheEntryListener<? super K,? super V> cacheEntryListener)
      Parameters:
      cache - the Cache on which the MapListener is operating
      cacheEntryListener - the CacheEntryListener to which to delegate and adapt MapEvents
  • Method Details

    • entryInserted

      public void entryInserted(MapEvent event)
      Description copied from interface: MapListener
      Invoked when a map entry has been inserted.
      Specified by:
      entryInserted in interface MapListener<K,V>
      Parameters:
      event - the MapEvent carrying the insert information
    • entryUpdated

      public void entryUpdated(MapEvent event)
      Description copied from interface: MapListener
      Invoked when a map entry has been updated.
      Specified by:
      entryUpdated in interface MapListener<K,V>
      Parameters:
      event - the MapEvent carrying the update information
    • entryDeleted

      public void entryDeleted(MapEvent event)
      Description copied from interface: MapListener
      Invoked when a map entry has been removed.
      Specified by:
      entryDeleted in interface MapListener<K,V>
      Parameters:
      event - the MapEvent carrying the delete information
    • getCacheEntryListener

      public javax.cache.event.CacheEntryListener<? super K,? super V> getCacheEntryListener()
      Obtains the CacheEntryListener to which MapEvents will be delegated.
      Returns:
      the CacheEntryListener