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)
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 <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.transform(ListenableFuture<I> input,
AsyncFunction<? super I,? extends O> function)
Deprecated.
These
AsyncFunction overloads of transform are
being renamed to transformAsync . (The Function
overloads are keeping the "transform" name.) This method will be removed in Guava release
20.0. |
static <I,O> ListenableFuture<O> |
Futures.transform(ListenableFuture<I> input,
AsyncFunction<? super I,? extends O> function,
Executor executor)
Deprecated.
These
AsyncFunction overloads of transform are
being renamed to transformAsync . (The Function
overloads are keeping the "transform" name.) This method will be removed in Guava release
20.0. |
static <I,O> ListenableFuture<O> |
Futures.transformAsync(ListenableFuture<I> input,
AsyncFunction<? super I,? extends O> function)
Returns a new
ListenableFuture whose result is asynchronously derived from the result
of the given Future . |
static <I,O> ListenableFuture<O> |
Futures.transformAsync(ListenableFuture<I> input,
AsyncFunction<? super I,? extends O> function,
Executor executor)
Returns a new
ListenableFuture whose result is asynchronously derived from the result
of the given Future . |
Copyright © 2010-2015. All Rights Reserved.