curator-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From randg...@apache.org
Subject git commit: added doc
Date Thu, 06 Mar 2014 11:46:15 GMT
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 <randgalt@apache.org>
Authored: Thu Mar 6 06:46:08 2014 -0500
Committer: randgalt <randgalt@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
     }
 


Mime
View raw message