curator-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From randg...@apache.org
Subject [4/9] git commit: Added a getter for connectionTimeoutMs
Date Sun, 10 Nov 2013 02:49:47 GMT
Added a getter for connectionTimeoutMs


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

Branch: refs/heads/master
Commit: d4135aef462841027dd53f738a56678db37529dc
Parents: aa5337b
Author: randgalt <randgalt@apache.org>
Authored: Sat Nov 9 18:45:04 2013 -0800
Committer: randgalt <randgalt@apache.org>
Committed: Sat Nov 9 18:45:04 2013 -0800

----------------------------------------------------------------------
 .../java/org/apache/curator/CuratorZookeeperClient.java   | 10 ++++++++++
 1 file changed, 10 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/curator/blob/d4135aef/curator-client/src/main/java/org/apache/curator/CuratorZookeeperClient.java
----------------------------------------------------------------------
diff --git a/curator-client/src/main/java/org/apache/curator/CuratorZookeeperClient.java b/curator-client/src/main/java/org/apache/curator/CuratorZookeeperClient.java
index ee9cf88..f4e56f9 100644
--- a/curator-client/src/main/java/org/apache/curator/CuratorZookeeperClient.java
+++ b/curator-client/src/main/java/org/apache/curator/CuratorZookeeperClient.java
@@ -269,6 +269,16 @@ public class CuratorZookeeperClient implements Closeable
         return state.getEnsembleProvider().getConnectionString();
     }
 
+    /**
+     * Return the configured connection timeout
+     *
+     * @return timeout
+     */
+    public int getConnectionTimeoutMs()
+    {
+        return connectionTimeoutMs;
+    }
+
     void        addParentWatcher(Watcher watcher)
     {
         state.addParentWatcher(watcher);


Mime
View raw message