diff --git a/spring-cloud-zookeeper.html b/spring-cloud-zookeeper.html index 8e52f583..a1fef2da 100644 --- a/spring-cloud-zookeeper.html +++ b/spring-cloud-zookeeper.html @@ -421,12 +421,18 @@ body.book #toc,body.book #preamble,body.book h1.sect0,body.book .sect1>h2{page-b
  • How to activate
  • Registering with Zookeeper
  • Using the DiscoveryClient
  • -
  • Using the Zookeeper Dependencies
  • + + +
  • Zookeeper Dependencies + +
  • +
  • Spring Cloud Zookeeper Dependency Watcher + -
    -

    Spring Cloud Zookeeper Dependency Watcher

    +
    + +
    +

    Spring Cloud Zookeeper Dependency Watcher

    +

    The Dependency Watcher mechanism allows you to register listeners to your dependencies. The functionality is in fact an implementation of the Observator pattern. When a dependency changes its state (UP or DOWN) then some custom logic can be applied.

    -

    How to activate

    @@ -833,13 +846,7 @@ The interface gives you one method:

    -
        /**
    -    * Method executed upon state change of a dependency
    -    *
    -    * @param dependencyName - alias from microservice configuration {@see ZookeeperDependencies}
    -    * @param newState
    -    */
    -    void stateChanged(String dependencyName, DependencyState newState);
    +
        void stateChanged(String dependencyName, DependencyState newState);
    @@ -939,7 +946,7 @@ config/application