Package io.camunda.client.impl.http
Class HttpCamundaFuture<RespT>
java.lang.Object
java.util.concurrent.CompletableFuture<RespT>
io.camunda.client.impl.http.HttpCamundaFuture<RespT>
- Type Parameters:
RespT- the expected response type
- All Implemented Interfaces:
CamundaFuture<RespT>,CompletionStage<RespT>,Future<RespT>
public class HttpCamundaFuture<RespT>
extends CompletableFuture<RespT>
implements CamundaFuture<RespT>
Implements a
CamundaFuture representing a HTTP call. Supports propagating cancellation of
the top level future to the underlying transport future.-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.concurrent.CompletableFuture
CompletableFuture.AsynchronousCompletionTaskNested classes/interfaces inherited from interface java.util.concurrent.Future
Future.State -
Constructor Summary
Constructors -
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.voidtransportFuture(Future<?> httpFuture) Methods inherited from class java.util.concurrent.CompletableFuture
acceptEither, acceptEitherAsync, acceptEitherAsync, allOf, anyOf, applyToEither, applyToEitherAsync, applyToEitherAsync, cancel, complete, completeAsync, completeAsync, completedFuture, completedStage, completeExceptionally, completeOnTimeout, copy, defaultExecutor, delayedExecutor, delayedExecutor, exceptionally, exceptionallyAsync, exceptionallyAsync, exceptionallyCompose, exceptionallyComposeAsync, exceptionallyComposeAsync, exceptionNow, failedFuture, failedStage, get, get, getNow, getNumberOfDependents, handle, handleAsync, handleAsync, isCancelled, isCompletedExceptionally, isDone, minimalCompletionStage, newIncompleteFuture, obtrudeException, obtrudeValue, orTimeout, resultNow, runAfterBoth, runAfterBothAsync, runAfterBothAsync, runAfterEither, runAfterEitherAsync, runAfterEitherAsync, runAsync, runAsync, state, supplyAsync, supplyAsync, thenAccept, thenAcceptAsync, thenAcceptAsync, thenAcceptBoth, thenAcceptBothAsync, thenAcceptBothAsync, thenApply, thenApplyAsync, thenApplyAsync, thenCombine, thenCombineAsync, thenCombineAsync, thenCompose, thenComposeAsync, thenComposeAsync, thenRun, thenRunAsync, thenRunAsync, toCompletableFuture, toString, whenComplete, whenCompleteAsync, whenCompleteAsyncMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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
-
Constructor Details
-
HttpCamundaFuture
public HttpCamundaFuture()
-
-
Method Details
-
join
Description copied from interface:CamundaFutureLikeFuture.get()but throws runtime exceptions.- Specified by:
joinin interfaceCamundaFuture<RespT>- Overrides:
joinin classCompletableFuture<RespT>
-
cancel
Description copied from interface:CamundaFutureLikeFuture.cancel(boolean)but allows providing a cause.- Specified by:
cancelin interfaceCamundaFuture<RespT>- Parameters:
cause- cause for cancellation can be `null`
-
join
Description copied from interface:CamundaFutureLikeFuture.get(long, TimeUnit)but throws runtime exceptions.- Specified by:
joinin interfaceCamundaFuture<RespT>
-
transportFuture
-