| Package | Description | 
|---|---|
| com.google.common.util.concurrent | Concurrency utilities. | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | AbstractFuture<V>An abstract implementation of  ListenableFuture, intended for advanced users only. | 
| class  | SettableFuture<V>A  ListenableFuturewhose result can be set by aSettableFuture.set(Object),SettableFuture.setException(Throwable)orSettableFuture.setFuture(ListenableFuture)call. | 
| Modifier and Type | Method and Description | 
|---|---|
| <X extends Throwable> | FluentFuture. catching(Class<X> exceptionType,
        Function<? super X,? extends V> fallback,
        Executor executor)Returns a  Futurewhose result is taken from thisFutureor, if thisFuturefails with the givenexceptionType, from the result provided by thefallback. | 
| <X extends Throwable> | FluentFuture. catchingAsync(Class<X> exceptionType,
             AsyncFunction<? super X,? extends V> fallback,
             Executor executor)Returns a  Futurewhose result is taken from thisFutureor, if thisFuturefails with the givenexceptionType, from the result provided by thefallback. | 
| static <V> FluentFuture<V> | FluentFuture. from(ListenableFuture<V> future)Converts the given  ListenableFutureto an equivalentFluentFuture. | 
| <T> FluentFuture<T> | FluentFuture. transform(Function<? super V,T> function,
         Executor executor)Returns a new  Futurewhose result is derived from the result of thisFuture. | 
| <T> FluentFuture<T> | FluentFuture. transformAsync(AsyncFunction<? super V,T> function,
              Executor executor)Returns a new  Futurewhose result is asynchronously derived from the result of thisFuture. | 
| FluentFuture<V> | FluentFuture. withTimeout(long timeout,
           TimeUnit unit,
           ScheduledExecutorService scheduledExecutor)Returns a future that delegates to this future but will finish early (via a  TimeoutExceptionwrapped in anExecutionException) if the specified timeout expires. | 
Copyright © 2010–2018. All rights reserved.