curator-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From randg...@apache.org
Subject git commit: It's not possible to make getCuratorListenable() work for watched events as there is only a single watcher set. Therefore, make this unsupported and have clients use the main curator instance
Date Mon, 21 Oct 2013 13:40:02 GMT
Updated Branches:
  refs/heads/master a27e00e06 -> f9fadff1a


It's not possible to make getCuratorListenable() work for watched events as there is only
a single watcher set. Therefore, make this unsupported and have clients use the main curator
instance


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

Branch: refs/heads/master
Commit: f9fadff1a1b48b2908957da2fc76ad7c4803ebdc
Parents: a27e00e
Author: randgalt <randgalt@apache.org>
Authored: Mon Oct 21 06:39:39 2013 -0700
Committer: randgalt <randgalt@apache.org>
Committed: Mon Oct 21 06:39:39 2013 -0700

----------------------------------------------------------------------
 .../java/org/apache/curator/framework/imps/NamespaceFacade.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-curator/blob/f9fadff1/curator-framework/src/main/java/org/apache/curator/framework/imps/NamespaceFacade.java
----------------------------------------------------------------------
diff --git a/curator-framework/src/main/java/org/apache/curator/framework/imps/NamespaceFacade.java
b/curator-framework/src/main/java/org/apache/curator/framework/imps/NamespaceFacade.java
index 2aff8d5..3584ff9 100644
--- a/curator-framework/src/main/java/org/apache/curator/framework/imps/NamespaceFacade.java
+++ b/curator-framework/src/main/java/org/apache/curator/framework/imps/NamespaceFacade.java
@@ -91,7 +91,7 @@ class NamespaceFacade extends CuratorFrameworkImpl
     @Override
     public Listenable<CuratorListener> getCuratorListenable()
     {
-        return client.getCuratorListenable();
+        throw new UnsupportedOperationException("getCuratorListenable() is only available
from a non-namespaced CuratorFramework instance");
     }
 
     @Override


Mime
View raw message