Uses of Class
com.google.common.util.concurrent.FluentFuture
Packages that use FluentFuture
-
Uses of FluentFuture in com.google.common.util.concurrent
Methods in com.google.common.util.concurrent that return FluentFutureModifier and TypeMethodDescriptionfinal <X extends Throwable>
FluentFuture<V> FluentFuture.catching(Class<X> exceptionType, Function<? super X, ? extends V> fallback, Executor executor) Returns aFuturewhose result is taken from thisFutureor, if thisFuturefails with the givenexceptionType, from the result provided by thefallback.final <X extends Throwable>
FluentFuture<V> FluentFuture.catchingAsync(Class<X> exceptionType, AsyncFunction<? super X, ? extends V> fallback, Executor executor) Returns aFuturewhose result is taken from thisFutureor, if thisFuturefails with the givenexceptionType, from the result provided by thefallback.ClosingFuture.finishToFuture()Marks this step as the last step in theClosingFuturepipeline.static <V extends @Nullable Object>
FluentFuture<V> FluentFuture.from(FluentFuture<V> future) Deprecated.no need to use thisstatic <V extends @Nullable Object>
FluentFuture<V> FluentFuture.from(ListenableFuture<V> future) Converts the givenListenableFutureto an equivalentFluentFuture.final <T extends @Nullable Object>
FluentFuture<T> Returns a newFuturewhose result is derived from the result of thisFuture.final <T extends @Nullable Object>
FluentFuture<T> FluentFuture.transformAsync(AsyncFunction<? super V, T> function, Executor executor) Returns a newFuturewhose result is asynchronously derived from the result of thisFuture.final FluentFuture<V> FluentFuture.withTimeout(long timeout, TimeUnit unit, ScheduledExecutorService scheduledExecutor) Returns a future that delegates to this future but will finish early (via aTimeoutExceptionwrapped in anExecutionException) if the specified timeout expires.final FluentFuture<V> FluentFuture.withTimeout(Duration timeout, ScheduledExecutorService scheduledExecutor) Returns a future that delegates to this future but will finish early (via aTimeoutExceptionwrapped in anExecutionException) if the specified timeout expires.Methods in com.google.common.util.concurrent with parameters of type FluentFutureModifier and TypeMethodDescriptionstatic <V extends @Nullable Object>
FluentFuture<V> FluentFuture.from(FluentFuture<V> future) Deprecated.no need to use this