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 theWatchableAsyncCuratorFrameworkfacade 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
WatchableAsyncCuratorFrameworkfacade is used (viaAsyncCuratorFrameworkDsl.watched()), this returns the completion stage used when the watcher is triggeredAlso, applies to
ModeledFrameworkwhenModeledFrameworkBuilder.watched(WatchMode)orModeledFrameworkBuilder.watched(WatchMode, java.util.function.UnaryOperator)is used.- Returns:
- CompletionStage for the set watcher or
null
-