public static class EntryListenerConfig.MapListenerToEntryListenerAdapter extends Object implements EntryListener, HazelcastInstanceAware
Constructor and Description |
---|
MapListenerToEntryListenerAdapter(MapListener mapListener) |
Modifier and Type | Method and Description |
---|---|
void |
entryAdded(EntryEvent event)
Invoked upon addition of an entry.
|
void |
entryEvicted(EntryEvent event)
Invoked upon eviction of an entry.
|
void |
entryRemoved(EntryEvent event)
Invoked upon removal of an entry.
|
void |
entryUpdated(EntryEvent event)
Invoked upon update of an entry.
|
MapListener |
getMapListener() |
void |
mapCleared(MapEvent event)
Invoked when all entries are removed by
IMap.clear() . |
void |
mapEvicted(MapEvent event)
Invoked when all entries are evicted by
IMap.evictAll() . |
void |
setHazelcastInstance(HazelcastInstance hazelcastInstance)
Gets the HazelcastInstance reference when submitting a Runnable/Callable using Hazelcast ExecutorService.
|
public MapListenerToEntryListenerAdapter(MapListener mapListener)
public void entryAdded(EntryEvent event)
EntryAddedListener
entryAdded
in interface EntryAddedListener
event
- the event invoked when an entry is addedpublic void entryEvicted(EntryEvent event)
EntryEvictedListener
entryEvicted
in interface EntryEvictedListener
event
- the event invoked when an entry is evictedpublic void entryRemoved(EntryEvent event)
EntryRemovedListener
entryRemoved
in interface EntryRemovedListener
event
- the event invoked when an entry is removedpublic void entryUpdated(EntryEvent event)
EntryUpdatedListener
entryUpdated
in interface EntryUpdatedListener
event
- the event invoked when an entry is updatedpublic void mapCleared(MapEvent event)
MapClearedListener
IMap.clear()
.mapCleared
in interface MapClearedListener
event
- the map event invoked when all entries are removed by IMap.clear()
public void mapEvicted(MapEvent event)
MapEvictedListener
IMap.evictAll()
.mapEvicted
in interface MapEvictedListener
event
- the map event invoked when all entries are evicted by IMap.evictAll()
public void setHazelcastInstance(HazelcastInstance hazelcastInstance)
HazelcastInstanceAware
setHazelcastInstance
in interface HazelcastInstanceAware
hazelcastInstance
- the HazelcastInstance referencepublic MapListener getMapListener()
Copyright © 2017 Hazelcast, Inc.. All Rights Reserved.