<X extends java.lang.Throwable> FluentFuture<V> |
FluentFuture.catching(java.lang.Class<X> exceptionType,
Function<? 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 .
|
<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 .
|
FluentFuture<V> |
ClosingFuture.finishToFuture() |
Marks this step as the last step in the ClosingFuture pipeline.
|
static <V extends @Nullable java.lang.Object> FluentFuture<V> |
FluentFuture.from(FluentFuture<V> future) |
Deprecated.
|
static <V extends @Nullable java.lang.Object> FluentFuture<V> |
FluentFuture.from(ListenableFuture<V> future) |
Converts the given ListenableFuture to an equivalent FluentFuture .
|
<T extends @Nullable java.lang.Object> FluentFuture<T> |
FluentFuture.transform(Function<? super V,T> function,
java.util.concurrent.Executor executor) |
Returns a new Future whose result is derived from the result of this Future .
|
<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 .
|
FluentFuture<V> |
FluentFuture.withTimeout(long timeout,
java.util.concurrent.TimeUnit unit,
java.util.concurrent.ScheduledExecutorService scheduledExecutor) |
Returns a future that delegates to this future but will finish early (via a TimeoutException wrapped in an ExecutionException ) if the specified timeout expires.
|
FluentFuture<V> |
FluentFuture.withTimeout(java.time.Duration timeout,
java.util.concurrent.ScheduledExecutorService scheduledExecutor) |
Returns a future that delegates to this future but will finish early (via a TimeoutException wrapped in an ExecutionException ) if the specified timeout expires.
|