public class MoreFutures extends Object
ListenableFuture
.Modifier and Type | Class and Description |
---|---|
static class |
MoreFutures.FailureCallback<V>
A
FutureCallback that does nothing on success. |
static class |
MoreFutures.SuccessCallback<V>
A
FutureCallback that does nothing on failure. |
Modifier and Type | Field and Description |
---|---|
static ListenableFuture<Void> |
VOID_SUCCESS
An immediate successful
ListenableFuture<Void> . |
Constructor and Description |
---|
MoreFutures() |
Modifier and Type | Method and Description |
---|---|
static <T> void |
propagateFuture(SettableFuture<T> settable,
ListenableFuture<T> future)
Configures a
SettableFuture to propagate the result of a future. |
public static final ListenableFuture<Void> VOID_SUCCESS
ListenableFuture<Void>
.public static <T> void propagateFuture(SettableFuture<T> settable, ListenableFuture<T> future)
SettableFuture
to propagate the result of a future.T
- settable
- future to be propagated tofuture
- future to propagateCopyright © 2012–2023. All rights reserved.