Package io.camunda.client.impl
Class CamundaClientFutureImpl<ClientResponse,BrokerResponse>
java.lang.Object
java.util.concurrent.CompletableFuture<ClientResponse>
io.camunda.client.impl.CamundaClientFutureImpl<ClientResponse,BrokerResponse>
- All Implemented Interfaces:
CamundaFuture<ClientResponse>,io.grpc.stub.ClientResponseObserver<com.google.protobuf.GeneratedMessage,,BrokerResponse> io.grpc.stub.StreamObserver<BrokerResponse>,CompletionStage<ClientResponse>,Future<ClientResponse>
- Direct Known Subclasses:
CamundaStreamingClientFutureImpl,RetriableClientFutureImpl
public class CamundaClientFutureImpl<ClientResponse,BrokerResponse>
extends CompletableFuture<ClientResponse>
implements CamundaFuture<ClientResponse>, io.grpc.stub.ClientResponseObserver<com.google.protobuf.GeneratedMessage,BrokerResponse>
-
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 -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected io.grpc.stub.ClientCallStreamObserver<com.google.protobuf.GeneratedMessage> -
Constructor Summary
ConstructorsConstructorDescriptionCamundaClientFutureImpl(Function<BrokerResponse, ClientResponse> responseMapper) -
Method Summary
Modifier and TypeMethodDescriptionvoidbeforeStart(io.grpc.stub.ClientCallStreamObserver<com.google.protobuf.GeneratedMessage> requestStream) booleancancel(boolean mayInterruptIfRunning) join()LikeFuture.get()but throws runtime exceptions.LikeFuture.get(long, TimeUnit)but throws runtime exceptions.voidvoidvoidonNext(BrokerResponse brokerResponse) Methods inherited from class java.util.concurrent.CompletableFuture
acceptEither, acceptEitherAsync, acceptEitherAsync, allOf, anyOf, applyToEither, applyToEitherAsync, applyToEitherAsync, 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
exceptionNow, get, get, isCancelled, isDone, resultNow, state
-
Field Details
-
clientCall
protected io.grpc.stub.ClientCallStreamObserver<com.google.protobuf.GeneratedMessage> clientCall
-
-
Constructor Details
-
CamundaClientFutureImpl
public CamundaClientFutureImpl() -
CamundaClientFutureImpl
-
-
Method Details
-
join
Description copied from interface:CamundaFutureLikeFuture.get()but throws runtime exceptions.- Specified by:
joinin interfaceCamundaFuture<ClientResponse>- Overrides:
joinin classCompletableFuture<ClientResponse>
-
cancel
public boolean cancel(boolean mayInterruptIfRunning) - Specified by:
cancelin interfaceFuture<ClientResponse>- Overrides:
cancelin classCompletableFuture<ClientResponse>
-
join
Description copied from interface:CamundaFutureLikeFuture.get(long, TimeUnit)but throws runtime exceptions.- Specified by:
joinin interfaceCamundaFuture<ClientResponse>
-
onNext
- Specified by:
onNextin interfaceio.grpc.stub.StreamObserver<ClientResponse>
-
onError
- Specified by:
onErrorin interfaceio.grpc.stub.StreamObserver<ClientResponse>
-
onCompleted
public void onCompleted()- Specified by:
onCompletedin interfaceio.grpc.stub.StreamObserver<ClientResponse>
-
beforeStart
public void beforeStart(io.grpc.stub.ClientCallStreamObserver<com.google.protobuf.GeneratedMessage> requestStream) - Specified by:
beforeStartin interfaceio.grpc.stub.ClientResponseObserver<ClientResponse,BrokerResponse>
-