Interface LiveNodesListener

    • Method Detail

      • onChange

        boolean onChange​(SortedSet<String> oldLiveNodes,
                         SortedSet<String> newLiveNodes)
        Called when a change in the live nodes set occurs. Note that, due to the way Zookeeper watchers are implemented, a single call may be the result of several state changes
        Parameters:
        oldLiveNodes - set of live nodes before the change
        newLiveNodes - set of live nodes after the change
        Returns:
        true if the listener should be removed