Package org.apache.curator.x.async.api
Interface AsyncCuratorFrameworkDsl
- All Superinterfaces:
WatchableAsyncCuratorFramework
- All Known Subinterfaces:
AsyncCuratorFramework
- All Known Implementing Classes:
AsyncCuratorFrameworkImpl
Zookeeper framework-style client
-
Method Summary
Modifier and TypeMethodDescriptionaddWatch()
Start an add watch builder.create()
Start a create builderdelete()
Start a delete buildergetACL()
Start a get ACL builderreconfig()
Start a reconfig builderStart a remove watches buildersetACL()
Start a set ACL buildersetData()
Start a set data buildersync()
Start a sync builderStart a transaction builderAllocate an operation that can be used withtransaction()
.watched()
Returns a facade that adds watching to any of the subsequently created builders.Methods inherited from interface org.apache.curator.x.async.api.WatchableAsyncCuratorFramework
checkExists, getChildren, getConfig, getData
-
Method Details
-
watched
WatchableAsyncCuratorFramework watched()Returns a facade that adds watching to any of the subsequently created builders. i.e. all operations on the WatchableAsyncCuratorFramework facade will have watchers set. Also, the
AsyncStage
returned from these builders will have a loaded staged watcher that is accessed fromAsyncStage.event()
WatchMode.stateChangeAndSuccess
is used- Returns:
- watcher facade
-
create
AsyncCreateBuilder create()Start a create builder- Returns:
- builder object
-
delete
AsyncDeleteBuilder delete()Start a delete builder- Returns:
- builder object
-
setData
AsyncSetDataBuilder setData()Start a set data builder- Returns:
- builder object
-
getACL
AsyncGetACLBuilder getACL()Start a get ACL builder- Returns:
- builder object
-
setACL
AsyncSetACLBuilder setACL()Start a set ACL builder- Returns:
- builder object
-
reconfig
AsyncReconfigBuilder reconfig()Start a reconfig builder- Returns:
- builder object
-
transaction
AsyncMultiTransaction transaction()Start a transaction builder- Returns:
- builder object
-
transactionOp
AsyncTransactionOp transactionOp()Allocate an operation that can be used withtransaction()
. NOTE:CuratorOp
instances created by this builder are reusable.- Returns:
- operation builder
-
sync
AsyncSyncBuilder sync()Start a sync builder- Returns:
- builder object
-
removeWatches
AsyncRemoveWatchesBuilder removeWatches()Start a remove watches builder- Returns:
- builder object
-
addWatch
AsyncWatchBuilder addWatch()Start an add watch builder. Supported only when ZooKeeper JAR of version 3.6 or above is used, throwsIllegalStateException
for ZooKeeper JAR 3.5 or below- Returns:
- builder object
- Throws:
IllegalStateException
- ZooKeeper JAR is 3.5 or below
-