public interface LiveNodesListener
ZkStateReader.registerLiveNodesListener(LiveNodesListener)
and called whenever the live nodes set changes.Modifier and Type | Method and Description |
---|---|
boolean |
onChange(SortedSet<String> oldLiveNodes,
SortedSet<String> newLiveNodes)
Called when a change in the live nodes set occurs.
|
boolean onChange(SortedSet<String> oldLiveNodes, SortedSet<String> newLiveNodes)
oldLiveNodes
- set of live nodes before the changenewLiveNodes
- set of live nodes after the changeCopyright © 2000-2019 Apache Software Foundation. All Rights Reserved.