public class ThriftCompletableFuture<T> extends CompletableFuture<T> implements AsyncMethodCallback<T>
CompletableFuture that can be passed in as an AsyncMethodCallback
when making an asynchronous client-side Thrift RPC.CompletableFuture.AsynchronousCompletionTask| Constructor and Description |
|---|
ThriftCompletableFuture() |
| Modifier and Type | Method and Description |
|---|---|
void |
onComplete(T t) |
void |
onError(Exception e) |
acceptEither, acceptEitherAsync, acceptEitherAsync, allOf, anyOf, applyToEither, applyToEitherAsync, applyToEitherAsync, cancel, complete, completedFuture, completeExceptionally, exceptionally, get, get, getNow, getNumberOfDependents, handle, handleAsync, handleAsync, isCancelled, isCompletedExceptionally, isDone, join, 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, whenCompleteAsyncpublic void onComplete(T t)
onComplete in interface AsyncMethodCallback<T>public void onError(Exception e)
onError in interface AsyncMethodCallback<T>© Copyright 2015–2017 LINE Corporation. All rights reserved.