curator-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From md...@apache.org
Subject [1/2] curator git commit: CURATOR-129 Add docs to PCC constructors
Date Fri, 07 Aug 2015 19:03:43 GMT
Repository: curator
Updated Branches:
  refs/heads/CURATOR-129 [created] 70c5330e0
  refs/heads/master 3a4d541a3 -> 40b458ee1


CURATOR-129 Add docs to PCC constructors

Add javadocs cautioning users that ExecutorServices provided should be single-threaded


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

Branch: refs/heads/CURATOR-129
Commit: 70c5330e04afc867664cb11bbff574bec8496f40
Parents: 3a4d541
Author: Mike Drob <mdrob@cloudera.com>
Authored: Wed Jun 24 14:13:41 2015 -0500
Committer: Mike Drob <mdrob@apache.org>
Committed: Fri Aug 7 14:01:11 2015 -0500

----------------------------------------------------------------------
 .../curator/framework/recipes/cache/PathChildrenCache.java       | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/curator/blob/70c5330e/curator-recipes/src/main/java/org/apache/curator/framework/recipes/cache/PathChildrenCache.java
----------------------------------------------------------------------
diff --git a/curator-recipes/src/main/java/org/apache/curator/framework/recipes/cache/PathChildrenCache.java
b/curator-recipes/src/main/java/org/apache/curator/framework/recipes/cache/PathChildrenCache.java
index 5a7b424..b5d912c 100644
--- a/curator-recipes/src/main/java/org/apache/curator/framework/recipes/cache/PathChildrenCache.java
+++ b/curator-recipes/src/main/java/org/apache/curator/framework/recipes/cache/PathChildrenCache.java
@@ -199,7 +199,7 @@ public class PathChildrenCache implements Closeable
      * @param path             path to watch
      * @param cacheData        if true, node contents are cached in addition to the stat
      * @param dataIsCompressed if true, data in the path is compressed
-     * @param executorService  ExecutorService to use for the PathChildrenCache's background
thread
+     * @param executorService  ExecutorService to use for the PathChildrenCache's background
thread. This service should be single threaded, otherwise the cache may see inconsistent results.
      */
     public PathChildrenCache(CuratorFramework client, String path, boolean cacheData, boolean
dataIsCompressed, final ExecutorService executorService)
     {
@@ -211,7 +211,7 @@ public class PathChildrenCache implements Closeable
      * @param path             path to watch
      * @param cacheData        if true, node contents are cached in addition to the stat
      * @param dataIsCompressed if true, data in the path is compressed
-     * @param executorService  Closeable ExecutorService to use for the PathChildrenCache's
background thread
+     * @param executorService  Closeable ExecutorService to use for the PathChildrenCache's
background thread. This service should be single threaded, otherwise the cache may see inconsistent
results.
      */
     public PathChildrenCache(CuratorFramework client, String path, boolean cacheData, boolean
dataIsCompressed, final CloseableExecutorService executorService)
     {


Mime
View raw message