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>
,java.util.concurrent.CompletionStage<T>
,java.util.concurrent.Future<T>
public final class CancelledAsyncFuture<T> extends FailedAsyncFuture<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 Constructor Description CancelledAsyncFuture()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <T> AsyncPromise<T>
getInstance()
boolean
isCancelled()
Always returns true.-
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
-
-
-
-
Method Detail
-
getInstance
public static <T> AsyncPromise<T> getInstance()
-
isCancelled
public boolean isCancelled()
Always returns true.- Specified by:
isCancelled
in interfacejava.util.concurrent.Future<T>
- Overrides:
isCancelled
in classFailedAsyncFuture<T>
- Returns:
true
this task is cancelled
-
-