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
public class PassThroughMapListenerAdapter<K,V> extends Object implements MapListener
- 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
Constructors Constructor Description PassThroughMapListenerAdapter(javax.cache.Cache<K,V> cache, javax.cache.event.CacheEntryListener<? super K,? super V> cacheEntryListener)
Constructs aPassThroughMapListenerAdapter
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
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.javax.cache.event.CacheEntryListener<? super K,? super V>
getCacheEntryListener()
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 Detail
-
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 Detail
-
entryInserted
public void entryInserted(MapEvent event)
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
public void entryUpdated(MapEvent event)
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
public void entryDeleted(MapEvent event)
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
-
-