Class CancelledAsyncFuture<T>
java.lang.Object
com.linkedin.alpini.base.concurrency.impl.AbstractAsyncFuture<T>
com.linkedin.alpini.base.concurrency.impl.FailedAsyncFuture<T>
com.linkedin.alpini.base.concurrency.impl.CancelledAsyncFuture<T>
- All Implemented Interfaces:
AsyncFuture<T>
,AsyncPromise<T>
,CompletionStage<T>
,Future<T>
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.linkedin.alpini.base.concurrency.AsyncFuture
AsyncFuture.Status
-
Field Summary
Fields inherited from interface com.linkedin.alpini.base.concurrency.AsyncFuture
NULL_SUCCESS
-
Constructor Summary
-
Method Summary
Methods inherited from class com.linkedin.alpini.base.concurrency.impl.FailedAsyncFuture
acceptEither, acceptEitherAsync, acceptEitherAsync, addListener, addListener, applyToEither, applyToEitherAsync, applyToEitherAsync, await, await, awaitUninterruptibly, awaitUninterruptibly, cancel, get, get, getCause, getNow, isDone, isSuccess, runAfterBoth, runAfterBothAsync, runAfterBothAsync, runAfterEither, runAfterEitherAsync, runAfterEitherAsync, setFailure, setSuccess, thenAccept, thenAcceptAsync, thenAcceptAsync, thenAcceptBoth, thenAcceptBothAsync, thenAcceptBothAsync, thenApply, thenApplyAsync, thenApplyAsync, thenCombine, thenCombineAsync, thenCombineAsync, thenCompose, thenComposeAsync, thenComposeAsync, thenRun, thenRunAsync, thenRunAsync, toCompletableFuture
Methods inherited from class com.linkedin.alpini.base.concurrency.impl.AbstractAsyncFuture
exceptionally, handle, handleAsync, handleAsync, whenComplete, whenCompleteAsync, whenCompleteAsync
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.linkedin.alpini.base.concurrency.AsyncPromise
setComplete
Methods inherited from interface java.util.concurrent.CompletionStage
exceptionally, exceptionallyAsync, exceptionallyAsync, exceptionallyCompose, exceptionallyComposeAsync, exceptionallyComposeAsync, handle, handleAsync, handleAsync, whenComplete, whenCompleteAsync, whenCompleteAsync
-
Constructor Details
-
CancelledAsyncFuture
public CancelledAsyncFuture()
-
-
Method Details
-
getInstance
-
isCancelled
public boolean isCancelled()Always returns true.- Specified by:
isCancelled
in interfaceFuture<T>
- Overrides:
isCancelled
in classFailedAsyncFuture<T>
- Returns:
true
this task is cancelled
-