public class ImmediateFuture<V> extends AsyncFuture<V>
Awaitable.AbstractAwaitable, Awaitable.AsyncAwaitable, Awaitable.Defaults, Awaitable.SyncAwaitable
CANCELLED, UNCANCELLABLE, UNSET
Modifier and Type | Method and Description |
---|---|
static <V> ImmediateFuture<V> |
cancelled() |
static <V> ImmediateFuture<V> |
failure(java.lang.Throwable cause) |
static <V> ImmediateFuture<V> |
success(V value) |
await, awaitUntil, flatMap, map
addCallback, addCallback, addCallback, addCallback, addCallback, addCallback, addListener, addListener, addListener, addListeners, await, awaitThrowUncheckedOnInterrupt, awaitThrowUncheckedOnInterrupt, awaitUninterruptibly, awaitUninterruptibly, awaitUntilThrowUncheckedOnInterrupt, awaitUntilUninterruptibly, cancel, cause, description, flatMap, get, get, getNow, getWhenDone, isCancellable, isCancelled, isDone, isSuccess, isUncancellable, map, map, notifyExecutor, removeListener, removeListeners, setUncancellable, setUncancellableExclusive, toString, tryFailure, trySuccess
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
await, awaitUninterruptibly, flatMap, rethrowIfFailed, sync, syncThrowUncheckedOnInterrupt, syncUninterruptibly
public static <V> ImmediateFuture<V> success(V value)
public static <V> ImmediateFuture<V> failure(java.lang.Throwable cause)
public static <V> ImmediateFuture<V> cancelled()
Copyright © 2009-2022 The Apache Software Foundation