Package com.hazelcast.map.listener
Interface MapClearedListener
- All Superinterfaces:
EventListener,MapListener
- All Known Subinterfaces:
EntryListener<K,V>
- All Known Implementing Classes:
ConsoleApp,EntryAdapter
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Invoked after all entries are removed by
IMap.clear().- Since:
- 3.5
-
Method Summary
Modifier and TypeMethodDescriptionvoidmapCleared(MapEvent event) Invoked when all entries are removed byIMap.clear().
-
Method Details
-
mapCleared
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 the
clear()method is called on the same instance where the listener was registered to.- Parameters:
event- the map event invoked when all entries are removed byIMap.clear()
-