Package io.zeebe.client.impl
Class ZeebeClientFutureImpl<ClientResponse,BrokerResponse>
- java.lang.Object
-
- java.util.concurrent.CompletableFuture<ClientResponse>
-
- io.zeebe.client.impl.ZeebeClientFutureImpl<ClientResponse,BrokerResponse>
-
- All Implemented Interfaces:
io.grpc.stub.StreamObserver<BrokerResponse>
,ZeebeFuture<ClientResponse>
,CompletionStage<ClientResponse>
,Future<ClientResponse>
- Direct Known Subclasses:
RetriableClientFutureImpl
,ZeebeStreamingClientFutureImpl
public class ZeebeClientFutureImpl<ClientResponse,BrokerResponse> extends CompletableFuture<ClientResponse> implements ZeebeFuture<ClientResponse>, io.grpc.stub.StreamObserver<BrokerResponse>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.util.concurrent.CompletableFuture
CompletableFuture.AsynchronousCompletionTask
-
-
Constructor Summary
Constructors Constructor Description ZeebeClientFutureImpl()
ZeebeClientFutureImpl(Function<BrokerResponse,ClientResponse> responseMapper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClientResponse
join()
LikeFuture.get()
but throws runtime exceptions.ClientResponse
join(long timeout, TimeUnit unit)
LikeFuture.get(long, TimeUnit)
but throws runtime exceptions.void
onCompleted()
void
onError(Throwable throwable)
void
onNext(BrokerResponse brokerResponse)
-
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, failedFuture, failedStage, get, get, getNow, getNumberOfDependents, handle, handleAsync, handleAsync, isCancelled, isCompletedExceptionally, isDone, minimalCompletionStage, newIncompleteFuture, obtrudeException, obtrudeValue, orTimeout, 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
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
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
-
-
-
-
Constructor Detail
-
ZeebeClientFutureImpl
public ZeebeClientFutureImpl()
-
ZeebeClientFutureImpl
public ZeebeClientFutureImpl(Function<BrokerResponse,ClientResponse> responseMapper)
-
-
Method Detail
-
join
public ClientResponse join()
Description copied from interface:ZeebeFuture
LikeFuture.get()
but throws runtime exceptions.- Specified by:
join
in interfaceZeebeFuture<ClientResponse>
- Overrides:
join
in classCompletableFuture<ClientResponse>
-
join
public ClientResponse join(long timeout, TimeUnit unit)
Description copied from interface:ZeebeFuture
LikeFuture.get(long, TimeUnit)
but throws runtime exceptions.- Specified by:
join
in interfaceZeebeFuture<ClientResponse>
-
onNext
public void onNext(BrokerResponse brokerResponse)
- Specified by:
onNext
in interfaceio.grpc.stub.StreamObserver<ClientResponse>
-
onError
public void onError(Throwable throwable)
- Specified by:
onError
in interfaceio.grpc.stub.StreamObserver<ClientResponse>
-
onCompleted
public void onCompleted()
- Specified by:
onCompleted
in interfaceio.grpc.stub.StreamObserver<ClientResponse>
-
-