Package org.apache.curator.x.async
Interface AsyncStage<T>
- All Superinterfaces:
CompletionStage<T>
A
CompletionStage
that is the result of most operations.-
Method Summary
Modifier and TypeMethodDescriptionCompletionStage<org.apache.zookeeper.WatchedEvent>
event()
If theWatchableAsyncCuratorFramework
facade is used (viaAsyncCuratorFrameworkDsl.watched()
), this returns the completion stage used when the watcher is triggeredMethods inherited from interface java.util.concurrent.CompletionStage
acceptEither, acceptEitherAsync, acceptEitherAsync, applyToEither, applyToEitherAsync, applyToEitherAsync, exceptionally, exceptionallyAsync, exceptionallyAsync, exceptionallyCompose, exceptionallyComposeAsync, exceptionallyComposeAsync, handle, handleAsync, handleAsync, runAfterBoth, runAfterBothAsync, runAfterBothAsync, runAfterEither, runAfterEitherAsync, runAfterEitherAsync, thenAccept, thenAcceptAsync, thenAcceptAsync, thenAcceptBoth, thenAcceptBothAsync, thenAcceptBothAsync, thenApply, thenApplyAsync, thenApplyAsync, thenCombine, thenCombineAsync, thenCombineAsync, thenCompose, thenComposeAsync, thenComposeAsync, thenRun, thenRunAsync, thenRunAsync, toCompletableFuture, whenComplete, whenCompleteAsync, whenCompleteAsync
-
Method Details
-
event
CompletionStage<org.apache.zookeeper.WatchedEvent> event()If the
WatchableAsyncCuratorFramework
facade is used (viaAsyncCuratorFrameworkDsl.watched()
), this returns the completion stage used when the watcher is triggeredAlso, applies to
ModeledFramework
whenModeledFrameworkBuilder.watched(WatchMode)
orModeledFrameworkBuilder.watched(WatchMode, java.util.function.UnaryOperator)
is used.- Returns:
- CompletionStage for the set watcher or
null
-