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 2013/11/10 03:49:47 UTC

[4/9] git commit: Added a getter for connectionTimeoutMs

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 <ra...@apache.org>
Authored: Sat Nov 9 18:45:04 2013 -0800
Committer: randgalt <ra...@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);