static <V,X extends java.lang.Throwable> ListenableFuture<V> |
Futures.catching(ListenableFuture<? extends V> input,
java.lang.Class<X> exceptionType,
Function<? super X,? extends V> fallback) |
Returns a Future whose result is taken from the given primary input or, if the
primary input fails with the given exceptionType , from the result provided by the
fallback .
|
static <V,X extends java.lang.Throwable> ListenableFuture<V> |
Futures.catching(ListenableFuture<? extends V> input,
java.lang.Class<X> exceptionType,
Function<? super X,? extends V> fallback,
java.util.concurrent.Executor executor) |
Returns a Future whose result is taken from the given primary input or, if the
primary input fails with the given exceptionType , from the result provided by the
fallback .
|
static <V,X extends java.lang.Throwable> ListenableFuture<V> |
Futures.catchingAsync(ListenableFuture<? extends V> input,
java.lang.Class<X> exceptionType,
AsyncFunction<? super X,? extends V> fallback) |
Returns a Future whose result is taken from the given primary input or, if the
primary input fails with the given exceptionType , from the result provided by the
fallback .
|
static <V,X extends java.lang.Throwable> ListenableFuture<V> |
Futures.catchingAsync(ListenableFuture<? extends V> input,
java.lang.Class<X> exceptionType,
AsyncFunction<? super X,? extends V> fallback,
java.util.concurrent.Executor executor) |
Returns a Future whose result is taken from the given primary input or, if the
primary input fails with the given exceptionType , from the result provided by the
fallback .
|