Package | Description |
---|---|
com.google.common.util.concurrent |
Concurrency utilities.
|
Modifier and Type | Method and Description |
---|---|
static <V> ListenableFuture<V> |
Futures.withFallback(ListenableFuture<? extends V> input,
FutureFallback<? extends V> fallback)
Returns a
Future whose result is taken from the given primary
input or, if the primary input fails, from the Future
provided by the fallback . |
static <V> ListenableFuture<V> |
Futures.withFallback(ListenableFuture<? extends V> input,
FutureFallback<? extends V> fallback,
Executor executor)
Returns a
Future whose result is taken from the given primary
input or, if the primary input fails, from the Future
provided by the fallback . |
Copyright © 2010-2014. All Rights Reserved.