Package io.camunda.client.api
Interface CamundaFuture<T>
- All Superinterfaces:
CompletionStage<T>,Future<T>
- All Known Implementing Classes:
CamundaClientFutureImpl,CamundaStreamingClientFutureImpl,HttpCamundaFuture,RetriableClientFutureImpl,RetriableStreamingFutureImpl
-
Nested Class Summary
Nested classes/interfaces inherited from interface java.util.concurrent.Future
Future.State -
Method Summary
Modifier and TypeMethodDescriptionbooleanLikeFuture.cancel(boolean)but allows providing a cause.join()LikeFuture.get()but throws runtime exceptions.LikeFuture.get(long, TimeUnit)but throws runtime exceptions.Methods 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, whenCompleteAsyncMethods inherited from interface java.util.concurrent.Future
cancel, exceptionNow, get, get, isCancelled, isDone, resultNow, state
-
Method Details
-
join
T join()LikeFuture.get()but throws runtime exceptions.- Throws:
ClientStatusException- on gRPC errorsClientException- on unexpected errors
-
cancel
LikeFuture.cancel(boolean)but allows providing a cause.- Parameters:
cause- cause for cancellation can be `null`
-
join
LikeFuture.get(long, TimeUnit)but throws runtime exceptions.- Throws:
ClientStatusException- on gRPC errorsClientException- on unexpected errors
-