Package org.apache.curator.x.async
Interface AsyncStage<T>
-
- All Superinterfaces:
java.util.concurrent.CompletionStage<T>
public interface AsyncStage<T> extends java.util.concurrent.CompletionStage<T>ACompletionStagethat is the result of most operations.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.concurrent.CompletionStage<org.apache.zookeeper.WatchedEvent>event()If theWatchableAsyncCuratorFrameworkfacade is used (viaAsyncCuratorFrameworkDsl.watched()), this returns the completion stage used when the watcher is triggered-
Methods inherited from interface java.util.concurrent.CompletionStage
acceptEither, acceptEitherAsync, acceptEitherAsync, applyToEither, applyToEitherAsync, applyToEitherAsync, exceptionally, 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 Detail
-
event
java.util.concurrent.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
-
-