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
Constructors -
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, toCompletableFutureMethods inherited from class com.linkedin.alpini.base.concurrency.impl.AbstractAsyncFuture
exceptionally, handle, handleAsync, handleAsync, whenComplete, whenCompleteAsync, whenCompleteAsyncMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.linkedin.alpini.base.concurrency.AsyncPromise
setCompleteMethods 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:
isCancelledin interfaceFuture<T>- Overrides:
isCancelledin classFailedAsyncFuture<T>- Returns:
truethis task is cancelled
-