public class ZeebeClientFutureImpl<ClientResponse,BrokerResponse> extends CompletableFuture<ClientResponse> implements ZeebeFuture<ClientResponse>, io.grpc.stub.StreamObserver<BrokerResponse>
CompletableFuture.AsynchronousCompletionTask
Constructor and Description |
---|
ZeebeClientFutureImpl() |
ZeebeClientFutureImpl(java.util.function.Function<BrokerResponse,ClientResponse> responseMapper) |
Modifier and Type | Method and Description |
---|---|
ClientResponse |
join()
Like
Future.get() but throws runtime exceptions. |
ClientResponse |
join(long timeout,
TimeUnit unit)
Like
Future.get(long, TimeUnit) but throws runtime exceptions. |
void |
onCompleted() |
void |
onError(Throwable throwable) |
void |
onNext(BrokerResponse brokerResponse) |
acceptEither, acceptEitherAsync, acceptEitherAsync, allOf, anyOf, applyToEither, applyToEitherAsync, applyToEitherAsync, cancel, complete, completedFuture, completeExceptionally, exceptionally, get, get, getNow, getNumberOfDependents, handle, handleAsync, handleAsync, isCancelled, isCompletedExceptionally, isDone, obtrudeException, obtrudeValue, runAfterBoth, runAfterBothAsync, runAfterBothAsync, runAfterEither, runAfterEitherAsync, runAfterEitherAsync, runAsync, runAsync, supplyAsync, supplyAsync, thenAccept, thenAcceptAsync, thenAcceptAsync, thenAcceptBoth, thenAcceptBothAsync, thenAcceptBothAsync, thenApply, thenApplyAsync, thenApplyAsync, thenCombine, thenCombineAsync, thenCombineAsync, thenCompose, thenComposeAsync, thenComposeAsync, thenRun, thenRunAsync, thenRunAsync, toCompletableFuture, toString, whenComplete, whenCompleteAsync, whenCompleteAsync
public ZeebeClientFutureImpl()
public ZeebeClientFutureImpl(java.util.function.Function<BrokerResponse,ClientResponse> responseMapper)
public ClientResponse join()
ZeebeFuture
Future.get()
but throws runtime exceptions.join
in interface ZeebeFuture<ClientResponse>
join
in class CompletableFuture<ClientResponse>
public ClientResponse join(long timeout, TimeUnit unit)
ZeebeFuture
Future.get(long, TimeUnit)
but throws runtime exceptions.join
in interface ZeebeFuture<ClientResponse>
public void onNext(BrokerResponse brokerResponse)
onNext
in interface io.grpc.stub.StreamObserver<BrokerResponse>
public void onError(Throwable throwable)
onError
in interface io.grpc.stub.StreamObserver<BrokerResponse>
public void onCompleted()
onCompleted
in interface io.grpc.stub.StreamObserver<BrokerResponse>
Copyright © 2017–2019 camunda services GmbH. All rights reserved.