Interface ListenerManager<K,V>

All Superinterfaces:
Listenable<K>
All Known Subinterfaces:
UnaryListenerManager<T>
All Known Implementing Classes:
MappingListenerManager, StandardListenerManager

public interface ListenerManager<K,V> extends Listenable<K>
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Remove all listeners
    void
    forEach(Consumer<V> function)
    Utility - apply the given function to each listener.
    default boolean
     
    int
    Return the number of listeners

    Methods inherited from interface org.apache.curator.framework.listen.Listenable

    addListener, addListener, removeListener
  • Method Details

    • clear

      void clear()
      Remove all listeners
    • size

      int size()
      Return the number of listeners
      Returns:
      number
    • forEach

      void forEach(Consumer<V> function)
      Utility - apply the given function to each listener. The function receives the listener as an argument.
      Parameters:
      function - function to call for each listener
    • isEmpty

      default boolean isEmpty()