Package | Description |
---|---|
com.google.common.util.concurrent |
Concurrency utilities.
|
Modifier and Type | Field and Description |
---|---|
(package private) FutureCallback<? super V> |
Futures.CallbackListener.callback |
Modifier and Type | Method and Description |
---|---|
void |
FluentFuture.addCallback(FutureCallback<? super V> callback,
java.util.concurrent.Executor executor)
Registers separate success and failure callbacks to be run when this
Future 's
computation is complete or, if the
computation is already complete, immediately. |
static <V> void |
Futures.addCallback(ListenableFuture<V> future,
FutureCallback<? super V> callback)
Deprecated.
Use the
overload that requires an executor. For identical behavior, pass
MoreExecutors.directExecutor() , but consider whether another executor would be safer, as
discussed in the ListenableFuture.addListener
documentation. This method is scheduled to be removed in July 2018. |
static <V> void |
Futures.addCallback(ListenableFuture<V> future,
FutureCallback<? super V> callback,
java.util.concurrent.Executor executor)
Registers separate success and failure callbacks to be run when the
Future 's
computation is complete or, if the
computation is already complete, immediately. |
Constructor and Description |
---|
CallbackListener(java.util.concurrent.Future<V> future,
FutureCallback<? super V> callback) |