K
- the type of the Cache
keysV
- the type of the Cache
valuespublic class PassThroughMapListenerAdapter<K,V> extends Object implements MapListener
Constructor and Description |
---|
PassThroughMapListenerAdapter(javax.cache.Cache<K,V> cache, javax.cache.event.CacheEntryListener<? super K,? super V> cacheEntryListener)
Constructs a
PassThroughMapListenerAdapter . |
Modifier and Type | Method and 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 the
CacheEntryListener to which MapEvent s will be delegated. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
synchronous
public PassThroughMapListenerAdapter(javax.cache.Cache<K,V> cache, javax.cache.event.CacheEntryListener<? super K,? super V> cacheEntryListener)
PassThroughMapListenerAdapter
.cache
- the Cache
on which the MapListener
is operatingcacheEntryListener
- the CacheEntryListener
to which to delegate and adapt MapEvent
spublic void entryInserted(MapEvent event)
MapListener
entryInserted
in interface MapListener
event
- the MapEvent carrying the insert informationpublic void entryUpdated(MapEvent event)
MapListener
entryUpdated
in interface MapListener
event
- the MapEvent carrying the update informationpublic void entryDeleted(MapEvent event)
MapListener
entryDeleted
in interface MapListener
event
- the MapEvent carrying the delete information