V - type of valuepublic interface RFuture<V> extends Future<V>, CompletionStage<V>
| Modifier and Type | Method and Description |
|---|---|
RFuture<V> |
addListener(io.netty.util.concurrent.FutureListener<? super V> listener)
Deprecated.
|
RFuture<V> |
addListeners(io.netty.util.concurrent.FutureListener<? super V>... listeners)
Deprecated.
|
RFuture<V> |
await()
Waits for this future to be completed.
|
boolean |
await(long timeoutMillis)
Waits for this future to be completed within the
specified time limit.
|
boolean |
await(long timeout,
TimeUnit unit)
Waits for this future to be completed within the
specified time limit.
|
RFuture<V> |
awaitUninterruptibly()
Waits for this future to be completed without
interruption.
|
boolean |
awaitUninterruptibly(long timeoutMillis)
Waits for this future to be completed within the
specified time limit without interruption.
|
boolean |
awaitUninterruptibly(long timeout,
TimeUnit unit)
Waits for this future to be completed within the
specified time limit without interruption.
|
Throwable |
cause()
Returns the cause of the failed I/O operation if the I/O operation has
failed.
|
V |
getNow()
Return the result without blocking.
|
boolean |
isSuccess()
Returns
true if and only if the I/O operation was completed
successfully. |
V |
join()
Returns the result value when complete, or throws an
(unchecked) exception if completed exceptionally.
|
RFuture<V> |
removeListener(io.netty.util.concurrent.FutureListener<? super V> listener)
Deprecated.
|
RFuture<V> |
removeListeners(io.netty.util.concurrent.FutureListener<? super V>... listeners)
Deprecated.
|
RFuture<V> |
sync()
Waits for this future until it is done, and rethrows the cause of the failure if this future
failed.
|
RFuture<V> |
syncUninterruptibly()
Waits for this future until it is done, and rethrows the cause of the failure if this future
failed.
|
acceptEither, acceptEitherAsync, acceptEitherAsync, applyToEither, applyToEitherAsync, applyToEitherAsync, exceptionally, handle, handleAsync, handleAsync, runAfterBoth, runAfterBothAsync, runAfterBothAsync, runAfterEither, runAfterEitherAsync, runAfterEitherAsync, thenAccept, thenAcceptAsync, thenAcceptAsync, thenAcceptBoth, thenAcceptBothAsync, thenAcceptBothAsync, thenApply, thenApplyAsync, thenApplyAsync, thenCombine, thenCombineAsync, thenCombineAsync, thenCompose, thenComposeAsync, thenComposeAsync, thenRun, thenRunAsync, thenRunAsync, toCompletableFuture, whenComplete, whenCompleteAsync, whenCompleteAsyncboolean isSuccess()
true if and only if the I/O operation was completed
successfully.true if future was completed successfullyThrowable cause()
null if succeeded or this future is not
completed yet.V getNow()
null.
As it is possible that a null value is used to mark the future as successful you also need to check
if the future is really done with Future.isDone() and not relay on the returned null value.V join()
boolean await(long timeout,
TimeUnit unit)
throws InterruptedException
timeout - - wait timeoutunit - - time unittrue if and only if the future was completed within
the specified time limitInterruptedException - if the current thread was interruptedboolean await(long timeoutMillis)
throws InterruptedException
timeoutMillis - - timeout valuetrue if and only if the future was completed within
the specified time limitInterruptedException - if the current thread was interrupted@Deprecated RFuture<V> addListener(io.netty.util.concurrent.FutureListener<? super V> listener)
CompletionStage interfacelistener - - listener for future object@Deprecated RFuture<V> addListeners(io.netty.util.concurrent.FutureListener<? super V>... listeners)
CompletionStage interfacelisteners - - listeners for future object@Deprecated RFuture<V> removeListener(io.netty.util.concurrent.FutureListener<? super V> listener)
@Deprecated RFuture<V> removeListeners(io.netty.util.concurrent.FutureListener<? super V>... listeners)
RFuture<V> sync() throws InterruptedException
InterruptedException - if the current thread was interruptedRFuture<V> syncUninterruptibly()
RFuture<V> await() throws InterruptedException
InterruptedException - if the current thread was interruptedRFuture<V> awaitUninterruptibly()
InterruptedException and
discards it silently.boolean awaitUninterruptibly(long timeout,
TimeUnit unit)
InterruptedException and discards it silently.timeout - - timeout valueunit - - timeout unit valuetrue if and only if the future was completed within
the specified time limitboolean awaitUninterruptibly(long timeoutMillis)
InterruptedException and discards it silently.timeoutMillis - - timeout valuetrue if and only if the future was completed within
the specified time limitCopyright © 2014–2018 The Redisson Project. All rights reserved.