Package | Description |
---|---|
com.google.common.util.concurrent |
Concurrency utilities.
|
Modifier and Type | Method and Description |
---|---|
static <V,X extends Throwable> |
Futures.catchingAsync(ListenableFuture<? extends V> input,
Class<X> exceptionType,
AsyncFunction<? super X,? extends V> fallback)
Deprecated.
Use the overload that requires an executor. For identical behavior, pass
MoreExecutors.directExecutor() , but consider whether another executor would be safer, as
discussed in the ListenableFuture.addListener
documentation. This method is scheduled to be removed in April 2018. |
static <V,X extends Throwable> |
Futures.catchingAsync(ListenableFuture<? extends V> input,
Class<X> exceptionType,
AsyncFunction<? super X,? extends V> fallback,
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 <I,O> ListenableFuture<O> |
Futures.transformAsync(ListenableFuture<I> input,
AsyncFunction<? super I,? extends O> function)
Deprecated.
Use the
overload that requires an executor. For identical behavior, pass
MoreExecutors.directExecutor() , but consider whether another executor would be safer, as
discussed in the ListenableFuture.addListener
documentation. This method is scheduled to be removed in April 2018. |
static <I,O> ListenableFuture<O> |
Futures.transformAsync(ListenableFuture<I> input,
AsyncFunction<? super I,? extends O> function,
Executor executor)
Returns a new
Future whose result is asynchronously derived from the result of the
given Future . |
Copyright © 2010-2017. All Rights Reserved.