public interface AsyncCuratorFramework extends AsyncCuratorFrameworkDsl
CompletionStage
Modifier and Type | Method and Description |
---|---|
CuratorFramework |
unwrap()
Returns the client that was originally passed to
wrap(org.apache.curator.framework.CuratorFramework) |
AsyncCuratorFrameworkDsl |
with(UnaryOperator<CuratorEvent> resultFilter,
UnaryOperator<org.apache.zookeeper.WatchedEvent> watcherFilter)
Returns a facade that adds the the given filters to all background operations and watchers.
|
AsyncCuratorFrameworkDsl |
with(UnhandledErrorListener listener)
Returns a facade that adds the given UnhandledErrorListener to all background operations
|
AsyncCuratorFrameworkDsl |
with(UnhandledErrorListener listener,
UnaryOperator<CuratorEvent> resultFilter,
UnaryOperator<org.apache.zookeeper.WatchedEvent> watcherFilter)
Set any combination of listener or filters
|
AsyncCuratorFrameworkDsl |
with(WatchMode mode)
Returns a facade that changes how watchers are set when
AsyncCuratorFrameworkDsl.watched() is called |
AsyncCuratorFrameworkDsl |
with(WatchMode mode,
UnhandledErrorListener listener,
UnaryOperator<CuratorEvent> resultFilter,
UnaryOperator<org.apache.zookeeper.WatchedEvent> watcherFilter)
Set any combination of listener, filters or watch mode
|
static AsyncCuratorFramework |
wrap(CuratorFramework client)
Takes an old-style Curator instance and returns a new async instance that
wraps it.
|
addWatch, create, delete, getACL, reconfig, removeWatches, setACL, setData, sync, transaction, transactionOp, watched
checkExists, getChildren, getConfig, getData
static AsyncCuratorFramework wrap(CuratorFramework client)
CuratorFrameworkFactory
. i.e.
you can have derived instances such as WatcherRemoveCuratorFramework
etc. but the original client must have been created by the Factory.client
- instance to wrapCuratorFramework unwrap()
wrap(org.apache.curator.framework.CuratorFramework)
AsyncCuratorFrameworkDsl with(WatchMode mode)
AsyncCuratorFrameworkDsl.watched()
is calledmode
- watch mode to use for subsequent calls to AsyncCuratorFrameworkDsl.watched()
AsyncCuratorFrameworkDsl with(UnhandledErrorListener listener)
listener
- lister to useAsyncCuratorFrameworkDsl with(UnaryOperator<CuratorEvent> resultFilter, UnaryOperator<org.apache.zookeeper.WatchedEvent> watcherFilter)
resultFilter
will get called for every background callback. watcherFilter
will get called for every watcher. The filters can return new versions or unchanged versions
of the arguments.resultFilter
- filter to use or null
watcherFilter
- filter to use or null
AsyncCuratorFrameworkDsl with(UnhandledErrorListener listener, UnaryOperator<CuratorEvent> resultFilter, UnaryOperator<org.apache.zookeeper.WatchedEvent> watcherFilter)
listener
- lister to use or null
resultFilter
- filter to use or null
watcherFilter
- filter to use or null
with(java.util.function.UnaryOperator, java.util.function.UnaryOperator)
,
with(org.apache.curator.framework.api.UnhandledErrorListener)
AsyncCuratorFrameworkDsl with(WatchMode mode, UnhandledErrorListener listener, UnaryOperator<CuratorEvent> resultFilter, UnaryOperator<org.apache.zookeeper.WatchedEvent> watcherFilter)
mode
- watch mode to use for subsequent calls to AsyncCuratorFrameworkDsl.watched()
(cannot be null
)listener
- lister to use or null
resultFilter
- filter to use or null
watcherFilter
- filter to use or null
with(WatchMode)
,
with(java.util.function.UnaryOperator, java.util.function.UnaryOperator)
,
with(org.apache.curator.framework.api.UnhandledErrorListener)
Copyright © 2011–2023 The Apache Software Foundation. All rights reserved.