Updated per review comments Updated BUILD_INITIAL_CACHE doc to indicate that the start() method with this mode will cause a synchronous rebuilding of the cache.
Removed extra line. Project: http://git-wip-us.apache.org/repos/asf/curator/repo Commit: http://git-wip-us.apache.org/repos/asf/curator/commit/c71a5a7a Tree: http://git-wip-us.apache.org/repos/asf/curator/tree/c71a5a7a Diff: http://git-wip-us.apache.org/repos/asf/curator/diff/c71a5a7a Branch: refs/heads/master Commit: c71a5a7aacf64b2a639d7cbdef462dd2c4d50de9 Parents: e2eed55 Author: Patrick Peralta <[email protected]> Authored: Wed Jul 23 15:06:49 2014 -0400 Committer: Patrick Peralta <[email protected]> Committed: Wed Jul 23 15:06:49 2014 -0400 ---------------------------------------------------------------------- .../curator/framework/recipes/cache/PathChildrenCache.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/curator/blob/c71a5a7a/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 18e008b..d555508 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 @@ -260,8 +260,9 @@ public class PathChildrenCache implements Closeable /** * The cache will be primed (in the foreground) with initial values. - * {@link PathChildrenCache#rebuild()} will be called before this - * method returns in order to get an initial view of the node. + * {@link PathChildrenCache#rebuild()} will be called before + * the {@link PathChildrenCache#start(StartMode)} method returns + * in order to get an initial view of the node. */ BUILD_INITIAL_CACHE, @@ -770,7 +771,6 @@ public class PathChildrenCache implements Closeable { handleException(e); } - Thread.currentThread().interrupt(); } catch ( Exception e )
