Interface ListenerManager<K,V>
-
- All Superinterfaces:
Listenable<K>
- All Known Implementing Classes:
MappingListenerManager,StandardListenerManager
public interface ListenerManager<K,V> extends Listenable<K>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclear()Remove all listenersvoidforEach(java.util.function.Consumer<V> function)Utility - apply the given function to each listener.intsize()Return the number of listeners-
Methods inherited from interface org.apache.curator.framework.listen.Listenable
addListener, addListener, removeListener
-
-
-
-
Method Detail
-
clear
void clear()
Remove all listeners
-
size
int size()
Return the number of listeners- Returns:
- number
-
forEach
void forEach(java.util.function.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
-
-