public class OpenRedFuture extends BaseOpenRedFuture<Void>
RedFuture, which represents the settable side of the future.
A future of this type may be resolved or failed, as well as attach with callbacks.| Modifier | Constructor and Description |
|---|---|
protected |
OpenRedFuture() |
| Modifier and Type | Method and Description |
|---|---|
void |
follow(Executor executor,
com.google.common.util.concurrent.ListenableFuture<?> listenableFuture)
Tells the current open future to follow the given future status.
|
void |
follow(Executor executor,
RedFuture future)
Tells the current open future to follow the given future status.
|
void |
follow(com.google.common.util.concurrent.ListenableFuture<?> listenableFuture)
Tells the current open future to follow the given future status.
|
void |
follow(RedFuture future)
Tells the current open future to follow the given future status.
|
void |
resolve()
Resolves the future, marking it successfully completed.
|
void |
tryResolve()
Resolves the future, marking it successfully completed.
|
addFailureCallback, addFailureCallback, addFinallyCallback, addFinallyCallback, addSuccessCallback, addSuccessCallback, fail, fail, getListenableFuture, isDone, resolve, safeCallback, tryFail, waitForCompletion, waitForCompletionpublic void resolve()
BaseOpenRedFuture.resolve(Object, boolean)public void tryResolve()
public void follow(RedFuture future)
future - future to followpublic void follow(Executor executor, RedFuture future)
executor - to execute the completion of this futurefuture - future to followpublic void follow(com.google.common.util.concurrent.ListenableFuture<?> listenableFuture)
listenableFuture - future to followpublic void follow(Executor executor, com.google.common.util.concurrent.ListenableFuture<?> listenableFuture)
executor - to execute the completion of this futurelistenableFuture - future to followCopyright © 2017. All rights reserved.