public class TimeoutFuture<T> extends CompletableFuture<T>
CompletableFuture.AsynchronousCompletionTask| Modifier and Type | Field and Description |
|---|---|
protected long |
createTimeMs |
protected long |
timeOutMs |
| Constructor and Description |
|---|
TimeoutFuture() |
TimeoutFuture(long timeOutMs) |
| Modifier and Type | Method and Description |
|---|---|
long |
getCreateTimeMs() |
long |
getTimeOutMs() |
boolean |
isTimeOut() |
void |
setCreateTimeMs(long createTimeMs) |
void |
setTimeOutMs(long timeOutMs) |
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, whenCompleteAsyncCopyright © 2023. All rights reserved.