V
- public class SyncFuture<V> extends AbstractFuture<V>
Awaitable.AbstractAwaitable, Awaitable.AsyncAwaitable, Awaitable.Defaults, Awaitable.SyncAwaitable
CANCELLED, UNCANCELLABLE, UNSET
Modifier | Constructor and Description |
---|---|
protected |
SyncFuture() |
protected |
SyncFuture(org.apache.cassandra.utils.concurrent.AbstractFuture.FailureHolder initialState) |
protected |
SyncFuture(org.apache.cassandra.utils.concurrent.AbstractFuture.FailureHolder initialState,
io.netty.util.concurrent.GenericFutureListener<? extends io.netty.util.concurrent.Future<? super V>> listener) |
protected |
SyncFuture(io.netty.util.concurrent.GenericFutureListener<? extends io.netty.util.concurrent.Future<? super V>> listener) |
protected |
SyncFuture(java.lang.Throwable immediateFailure) |
protected |
SyncFuture(V immediateSuccess) |
Modifier and Type | Method and Description |
---|---|
Future<V> |
await()
Wait indefinitely for this future to complete, throwing any interrupt
|
boolean |
awaitUntil(long deadline)
Await until the deadline (in nanoTime), throwing any interrupt.
|
<T> Future<T> |
flatMap(java.util.function.Function<? super V,? extends Future<T>> flatMapper,
java.util.concurrent.Executor executor)
Support
Futures.transformAsync(ListenableFuture, AsyncFunction, Executor) natively
See AbstractFuture.addListener(GenericFutureListener) for ordering semantics. |
<T> Future<T> |
map(java.util.function.Function<? super V,? extends T> mapper,
java.util.concurrent.Executor executor)
Support
Futures.transform(com.google.common.util.concurrent.ListenableFuture<I>, com.google.common.base.Function<? super I, ? extends O>, java.util.concurrent.Executor) natively
See AbstractFuture.addListener(GenericFutureListener) for ordering semantics. |
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
protected SyncFuture()
protected SyncFuture(V immediateSuccess)
protected SyncFuture(java.lang.Throwable immediateFailure)
protected SyncFuture(org.apache.cassandra.utils.concurrent.AbstractFuture.FailureHolder initialState)
protected SyncFuture(io.netty.util.concurrent.GenericFutureListener<? extends io.netty.util.concurrent.Future<? super V>> listener)
protected SyncFuture(org.apache.cassandra.utils.concurrent.AbstractFuture.FailureHolder initialState, io.netty.util.concurrent.GenericFutureListener<? extends io.netty.util.concurrent.Future<? super V>> listener)
public <T> Future<T> map(java.util.function.Function<? super V,? extends T> mapper, java.util.concurrent.Executor executor)
Futures.transform(com.google.common.util.concurrent.ListenableFuture<I>, com.google.common.base.Function<? super I, ? extends O>, java.util.concurrent.Executor)
natively
See AbstractFuture.addListener(GenericFutureListener)
for ordering semantics.public <T> Future<T> flatMap(java.util.function.Function<? super V,? extends Future<T>> flatMapper, @Nullable java.util.concurrent.Executor executor)
Futures.transformAsync(ListenableFuture, AsyncFunction, Executor)
natively
See AbstractFuture.addListener(GenericFutureListener)
for ordering semantics.public boolean awaitUntil(long deadline) throws java.lang.InterruptedException
Awaitable
java.lang.InterruptedException
- if interruptedCopyright © 2009- The Apache Software Foundation