Interface CollectionPropsWatcher


public interface CollectionPropsWatcher
Callback registered with ZkStateReader.registerCollectionPropsWatcher(String, CollectionPropsWatcher) and called whenever the collection properties change.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    onStateChanged(Map<String,String> collectionProperties)
    Called when the collection properties we are registered against has a change of state
  • Method Details

    • onStateChanged

      boolean onStateChanged(Map<String,String> collectionProperties)
      Called when the collection properties we are registered against has a change of state

      Note that, due to the way Zookeeper watchers are implemented, a single call may be the result of several state changes

      Parameters:
      collectionProperties - the new collection properties
      Returns:
      true if the watcher should be removed