You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@curator.apache.org by ra...@apache.org on 2014/03/06 12:46:15 UTC

git commit: added doc

Repository: curator
Updated Branches:
  refs/heads/master a40b81940 -> 0f328c6cb


added doc


Project: http://git-wip-us.apache.org/repos/asf/curator/repo
Commit: http://git-wip-us.apache.org/repos/asf/curator/commit/0f328c6c
Tree: http://git-wip-us.apache.org/repos/asf/curator/tree/0f328c6c
Diff: http://git-wip-us.apache.org/repos/asf/curator/diff/0f328c6c

Branch: refs/heads/master
Commit: 0f328c6cb0ffe7422831a777cb3273d520c91eaf
Parents: a40b819
Author: randgalt <ra...@apache.org>
Authored: Thu Mar 6 06:46:08 2014 -0500
Committer: randgalt <ra...@apache.org>
Committed: Thu Mar 6 06:46:08 2014 -0500

----------------------------------------------------------------------
 .../curator/framework/recipes/leader/LeaderLatch.java     | 10 ++++++++++
 1 file changed, 10 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/curator/blob/0f328c6c/curator-recipes/src/main/java/org/apache/curator/framework/recipes/leader/LeaderLatch.java
----------------------------------------------------------------------
diff --git a/curator-recipes/src/main/java/org/apache/curator/framework/recipes/leader/LeaderLatch.java b/curator-recipes/src/main/java/org/apache/curator/framework/recipes/leader/LeaderLatch.java
index 310919b..8603297 100644
--- a/curator-recipes/src/main/java/org/apache/curator/framework/recipes/leader/LeaderLatch.java
+++ b/curator-recipes/src/main/java/org/apache/curator/framework/recipes/leader/LeaderLatch.java
@@ -96,9 +96,19 @@ public class LeaderLatch implements Closeable
         CLOSED
     }
 
+    /**
+     * How to handle listeners when the latch is closed
+     */
     public enum CloseMode
     {
+        /**
+         * When the latch is closed, listeners will *not* be notified
+         */
         SILENT,
+
+        /**
+         * When the latch is closed, listeners *will* be notified
+         */
         NOTIFY_LEADER
     }