Added a getter for connectionTimeoutMs
authorrandgalt <randgalt@apache.org>
Sun, 10 Nov 2013 02:45:04 +0000 (18:45 -0800)
committerrandgalt <randgalt@apache.org>
Sun, 10 Nov 2013 02:45:04 +0000 (18:45 -0800)
curator-client/src/main/java/org/apache/curator/CuratorZookeeperClient.java

index ee9cf88..f4e56f9 100644 (file)
@@ -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);