public class RecoverFuture<V>
extends com.google.common.util.concurrent.AbstractFuture<V>
implements com.google.common.util.concurrent.FutureCallback<V>
| Modifier and Type | Method and Description |
|---|---|
void |
onFailure(java.lang.Throwable t) |
void |
onSuccess(V result) |
static <V> com.google.common.util.concurrent.ListenableFuture<V> |
recover(com.google.common.util.concurrent.ListenableFuture<V> future,
com.google.common.base.Function<java.lang.Throwable,V> catcher) |
public static <V> com.google.common.util.concurrent.ListenableFuture<V> recover(@Nonnull
com.google.common.util.concurrent.ListenableFuture<V> future,
@Nonnull
com.google.common.base.Function<java.lang.Throwable,V> catcher)
public void onSuccess(V result)
onSuccess in interface com.google.common.util.concurrent.FutureCallback<V>public void onFailure(java.lang.Throwable t)
onFailure in interface com.google.common.util.concurrent.FutureCallback<V>