Repository: curator Updated Branches: refs/heads/CURATOR-397 aadb72b62 -> 34c594a8e
fixed some typos and a bad link in the examples help Project: http://git-wip-us.apache.org/repos/asf/curator/repo Commit: http://git-wip-us.apache.org/repos/asf/curator/commit/34c594a8 Tree: http://git-wip-us.apache.org/repos/asf/curator/tree/34c594a8 Diff: http://git-wip-us.apache.org/repos/asf/curator/diff/34c594a8 Branch: refs/heads/CURATOR-397 Commit: 34c594a8e6c3730f06bb159709265e0d50b389db Parents: aadb72b Author: randgalt <[email protected]> Authored: Sun Apr 9 13:21:49 2017 -0500 Committer: randgalt <[email protected]> Committed: Sun Apr 9 13:21:49 2017 -0500 ---------------------------------------------------------------------- curator-examples/src/site/confluence/index.confluence | 2 +- curator-x-async/src/site/confluence/index.confluence | 2 +- .../src/site/confluence/modeled-cache-recipes.confluence | 5 +++-- 3 files changed, 5 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/curator/blob/34c594a8/curator-examples/src/site/confluence/index.confluence ---------------------------------------------------------------------- diff --git a/curator-examples/src/site/confluence/index.confluence b/curator-examples/src/site/confluence/index.confluence index 928b44f..d5d6c5d 100644 --- a/curator-examples/src/site/confluence/index.confluence +++ b/curator-examples/src/site/confluence/index.confluence @@ -8,5 +8,5 @@ This module contains example usages of various Curator features. Each directory |/discovery|Example usage of the Curator's ServiceDiscovery| |/framework|A few examples of how to use the CuratorFramework class| -See the [examples source repo|https://git-wip-us.apache.org/repos/asf?p=curator.git;a=tree;f=curator-examples/src/main/java] for each example. +See the [examples source repo|https://github.com/apache/curator/tree/master/curator-examples/src/main/java] for each example. http://git-wip-us.apache.org/repos/asf/curator/blob/34c594a8/curator-x-async/src/site/confluence/index.confluence ---------------------------------------------------------------------- diff --git a/curator-x-async/src/site/confluence/index.confluence b/curator-x-async/src/site/confluence/index.confluence index d192f47..a5d8072 100644 --- a/curator-x-async/src/site/confluence/index.confluence +++ b/curator-x-async/src/site/confluence/index.confluence @@ -50,7 +50,7 @@ Strongly typed wrappers for Curator's Cache Recipes (NodeCache, PathChildrenCach you to use serializable classes as opposed to raw byte arrays. For example: {code} -ModeledNodeCache<MyModel> cache = ModeledNodeCache.wrap(nodeCache, serializer) +ModeledNodeCache<MyModel> cache = ModeledNodeCache.wrap(nodeCache, serializer); cache.getCurrentData().ifPresent(data -> { MyModel model = data.getData(); ... http://git-wip-us.apache.org/repos/asf/curator/blob/34c594a8/curator-x-async/src/site/confluence/modeled-cache-recipes.confluence ---------------------------------------------------------------------- diff --git a/curator-x-async/src/site/confluence/modeled-cache-recipes.confluence b/curator-x-async/src/site/confluence/modeled-cache-recipes.confluence index ba461df..684372f 100644 --- a/curator-x-async/src/site/confluence/modeled-cache-recipes.confluence +++ b/curator-x-async/src/site/confluence/modeled-cache-recipes.confluence @@ -4,7 +4,7 @@ Strongly typed wrappers for Curator's Cache Recipes (NodeCache, PathChildrenCach you to use serializable classes as opposed to raw byte arrays. For example: {code} -ModeledNodeCache<MyModel> cache = ModeledNodeCache.wrap(nodeCache, serializer) +ModeledNodeCache<MyModel> cache = ModeledNodeCache.wrap(nodeCache, serializer); cache.getCurrentData().ifPresent(data -> { MyModel model = data.getData(); ... @@ -21,8 +21,9 @@ system. Any of the Curator Cache Recipes — NodeCache, PathChildrenCache or TreeCache — can be wrapped with "modeled" versions: {{ModeledNodeCache}}, {{ModeledPathChildrenCache}} and {{ModeledTreeCache}}. Each wrapper has a {{wrap()}} method that takes an instance of the cache and a serializer. All the -main methods of each cache are duplicated in the wrapper. However, the data object and listeners +public methods of each cache are duplicated in the wrapper. However, the data object and listeners are altered to specify typed models via {{ModeledCachedNode<T>}} and {{ModeledCacheListener<T>}}. +The wrappers use the same serializer abstraction as described in [[Modeled Curator|modeled.html]]. h2. Example
