zookeeper-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From enixon <...@git.apache.org>
Subject [GitHub] zookeeper pull request #529: [ZOOKEEPER-2368] Send a watch event is when a c...
Date Mon, 18 Jun 2018 01:25:18 GMT
Github user enixon commented on a diff in the pull request:

    https://github.com/apache/zookeeper/pull/529#discussion_r195949453
  
    --- Diff: src/java/main/org/apache/zookeeper/Watcher.java ---
    @@ -84,7 +84,14 @@
                  * client connection (the session) is no longer valid. You must
                  * create a new client connection (instantiate a new ZooKeeper
                  * instance) if you with to access the ensemble. */
    -            Expired (-112);
    +            Expired (-112),
    +            
    +            /** 
    +             * The client has been closed. This state is never generated by
    +             * the server, but is generated locally when a client calls
    +             * {@link ZooKeeper#close()} or {@link ZooKeeper#close(int)}
    +             */
    +            Closed (-2);
    --- End diff --
    
    Nit - make the enum value 7?


---

Mime
View raw message