Class PassThroughMapListenerAdapter<K,V>
java.lang.Object
com.tangosol.coherence.jcache.passthroughcache.PassThroughMapListenerAdapter<K,V>
- Type Parameters:
K
- the type of theCache
keysV
- the type of theCache
values
- 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
ConstructorDescriptionPassThroughMapListenerAdapter
(javax.cache.Cache<K, V> cache, javax.cache.event.CacheEntryListener<? super K, ? super V> cacheEntryListener) Constructs aPassThroughMapListenerAdapter
. -
Method Summary
Modifier and TypeMethodDescriptionvoid
entryDeleted
(MapEvent event) Invoked when a map entry has been removed.void
entryInserted
(MapEvent event) Invoked when a map entry has been inserted.void
entryUpdated
(MapEvent event) Invoked when a map entry has been updated.Obtains theCacheEntryListener
to whichMapEvent
s will be delegated.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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
- theCache
on which theMapListener
is operatingcacheEntryListener
- theCacheEntryListener
to which to delegate and adaptMapEvent
s
-
-
Method Details
-
entryInserted
Description copied from interface:MapListener
Invoked when a map entry has been inserted.- Specified by:
entryInserted
in interfaceMapListener<K,
V> - Parameters:
event
- the MapEvent carrying the insert information
-
entryUpdated
Description copied from interface:MapListener
Invoked when a map entry has been updated.- Specified by:
entryUpdated
in interfaceMapListener<K,
V> - Parameters:
event
- the MapEvent carrying the update information
-
entryDeleted
Description copied from interface:MapListener
Invoked when a map entry has been removed.- Specified by:
entryDeleted
in interfaceMapListener<K,
V> - Parameters:
event
- the MapEvent carrying the delete information
-
getCacheEntryListener
Obtains theCacheEntryListener
to whichMapEvent
s will be delegated.- Returns:
- the
CacheEntryListener
-