Class PassThroughMapListenerAdapter<K,V>
java.lang.Object
com.tangosol.coherence.jcache.passthroughcache.PassThroughMapListenerAdapter<K,V>
- Type Parameters:
K- the type of theCachekeysV- the type of theCachevalues
- All Implemented Interfaces:
MapListener,EventListener
- Since:
- Coherence 12.1.3
- Author:
- bo 2013.11.01
-
Field Summary
Fields inherited from interface com.tangosol.util.MapListener
ASYNCHRONOUS, SYNCHRONOUS, VERSION_AWARE -
Constructor Summary
ConstructorsConstructorDescriptionPassThroughMapListenerAdapter(javax.cache.Cache<K, V> cache, javax.cache.event.CacheEntryListener<? super K, ? super V> cacheEntryListener) Constructs aPassThroughMapListenerAdapter. -
Method Summary
Modifier and TypeMethodDescriptionvoidentryDeleted(MapEvent event) Invoked when a map entry has been removed.voidentryInserted(MapEvent event) Invoked when a map entry has been inserted.voidentryUpdated(MapEvent event) Invoked when a map entry has been updated.Obtains theCacheEntryListenerto whichMapEvents will be delegated.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.tangosol.util.MapListener
characteristics, isAsynchronous, isSynchronous, isVersionAware, synchronous
-
Constructor Details
-
PassThroughMapListenerAdapter
public PassThroughMapListenerAdapter(javax.cache.Cache<K, V> cache, javax.cache.event.CacheEntryListener<? super K, ? super V> cacheEntryListener) Constructs aPassThroughMapListenerAdapter.- Parameters:
cache- theCacheon which theMapListeneris operatingcacheEntryListener- theCacheEntryListenerto which to delegate and adaptMapEvents
-
-
Method Details
-
entryInserted
Description copied from interface:MapListenerInvoked when a map entry has been inserted.- Specified by:
entryInsertedin interfaceMapListener<K,V> - Parameters:
event- the MapEvent carrying the insert information
-
entryUpdated
Description copied from interface:MapListenerInvoked when a map entry has been updated.- Specified by:
entryUpdatedin interfaceMapListener<K,V> - Parameters:
event- the MapEvent carrying the update information
-
entryDeleted
Description copied from interface:MapListenerInvoked when a map entry has been removed.- Specified by:
entryDeletedin interfaceMapListener<K,V> - Parameters:
event- the MapEvent carrying the delete information
-
getCacheEntryListener
Obtains theCacheEntryListenerto whichMapEvents will be delegated.- Returns:
- the
CacheEntryListener
-