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.

@FunctionalInterface public interface MapClearedListener extends MapListener
Invoked after all entries are removed by IMap.clear().
Since:
3.5
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Invoked when all entries are removed by IMap.clear().
  • Method Details

    • mapCleared

      void mapCleared(MapEvent event)
      Invoked when all entries are removed by IMap.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 by IMap.clear()