Package com.hazelcast.core
Class EntryAdapter<K,V>
- java.lang.Object
-
- com.hazelcast.core.EntryAdapter<K,V>
-
- Type Parameters:
K
- key of the map entryV
- value of the map entry.
- All Implemented Interfaces:
EntryListener<K,V>
,EntryAddedListener<K,V>
,EntryEvictedListener<K,V>
,EntryExpiredListener<K,V>
,EntryRemovedListener<K,V>
,EntryUpdatedListener<K,V>
,MapClearedListener
,MapEvictedListener
,MapListener
,java.util.EventListener
public class EntryAdapter<K,V> extends java.lang.Object implements EntryListener<K,V>
Adapter forMapListener
.- See Also:
MapListener
,EntryListener
-
-
Constructor Summary
Constructors Constructor Description EntryAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
entryAdded(EntryEvent<K,V> event)
Invoked upon addition of an entry.void
entryEvicted(EntryEvent<K,V> event)
Invoked upon eviction of an entry.void
entryExpired(EntryEvent<K,V> event)
Invoked upon expiration of an entry.void
entryRemoved(EntryEvent<K,V> event)
Invoked upon removal of an entry.void
entryUpdated(EntryEvent<K,V> event)
Invoked upon update of an entry.void
mapCleared(MapEvent event)
Invoked when all entries are removed byIMap.clear()
.void
mapEvicted(MapEvent event)
Invoked when all entries are evicted byIMap.evictAll()
.void
onEntryEvent(EntryEvent<K,V> event)
This method is called when an one of the methods of theEntryListener
is not overridden.void
onMapEvent(MapEvent event)
This method is called when an one of the methods of theEntryListener
is not overridden.
-
-
-
Method Detail
-
entryAdded
public void entryAdded(EntryEvent<K,V> event)
Description copied from interface:EntryAddedListener
Invoked upon addition of an entry.- Specified by:
entryAdded
in interfaceEntryAddedListener<K,V>
- Parameters:
event
- the event invoked when an entry is added
-
entryRemoved
public void entryRemoved(EntryEvent<K,V> event)
Description copied from interface:EntryRemovedListener
Invoked upon removal of an entry.- Specified by:
entryRemoved
in interfaceEntryRemovedListener<K,V>
- Parameters:
event
- the event invoked when an entry is removed
-
entryUpdated
public void entryUpdated(EntryEvent<K,V> event)
Description copied from interface:EntryUpdatedListener
Invoked upon update of an entry.- Specified by:
entryUpdated
in interfaceEntryUpdatedListener<K,V>
- Parameters:
event
- the event invoked when an entry is updated
-
entryEvicted
public void entryEvicted(EntryEvent<K,V> event)
Description copied from interface:EntryEvictedListener
Invoked upon eviction of an entry.- Specified by:
entryEvicted
in interfaceEntryEvictedListener<K,V>
- Parameters:
event
- the event invoked when an entry is evicted
-
entryExpired
public void entryExpired(EntryEvent<K,V> event)
Description copied from interface:EntryExpiredListener
Invoked upon expiration of an entry.- Specified by:
entryExpired
in interfaceEntryExpiredListener<K,V>
- Parameters:
event
- the event invoked when an entry is expired.
-
mapEvicted
public void mapEvicted(MapEvent event)
Description copied from interface:MapEvictedListener
Invoked when all entries are evicted byIMap.evictAll()
.- Specified by:
mapEvicted
in interfaceMapEvictedListener
- Parameters:
event
- the map event invoked when all entries are evicted byIMap.evictAll()
-
mapCleared
public void mapCleared(MapEvent event)
Description copied from interface:MapClearedListener
Invoked when all entries are removed byIMap.clear()
. When a listener is registered as local-only then it will be invoked if and only if theclear()
method is called on the same instance where the listener was registered to.- Specified by:
mapCleared
in interfaceMapClearedListener
- Parameters:
event
- the map event invoked when all entries are removed byIMap.clear()
-
onEntryEvent
public void onEntryEvent(EntryEvent<K,V> event)
This method is called when an one of the methods of theEntryListener
is not overridden. It can be practical if you want to bundle some/all of the methods to a single method.- Parameters:
event
- the EntryEvent.
-
onMapEvent
public void onMapEvent(MapEvent event)
This method is called when an one of the methods of theEntryListener
is not overridden. It can be practical if you want to bundle some/all of the methods to a single method.- Parameters:
event
- the MapEvent.
-
-