<X extends java.lang.Throwable> FluentFuture<V> |
FluentFuture.catchingAsync(java.lang.Class<X> exceptionType,
AsyncFunction<? super X,? extends V> fallback,
java.util.concurrent.Executor executor) |
Returns a Future whose result is taken from this Future or, if this
Future fails with the given exceptionType , from the result provided by the
fallback .
|
static <V extends @Nullable java.lang.Object,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 .
|
<T extends @Nullable java.lang.Object> FluentFuture<T> |
FluentFuture.transformAsync(AsyncFunction<? super V,T> function,
java.util.concurrent.Executor executor) |
Returns a new Future whose result is asynchronously derived from the result of this
Future .
|
static <I extends @Nullable java.lang.Object,O extends @Nullable java.lang.Object> ListenableFuture<O> |
Futures.transformAsync(ListenableFuture<I> input,
AsyncFunction<? super I,? extends O> function,
java.util.concurrent.Executor executor) |
Returns a new Future whose result is asynchronously derived from the result of the
given Future .
|
static <V extends @Nullable java.lang.Object,U extends @Nullable java.lang.Object> ClosingFuture.AsyncClosingFunction<V,U> |
ClosingFuture.withoutCloser(AsyncFunction<V,U> function) |
|