Package | Description |
---|---|
com.google.common.util.concurrent |
Concurrency utilities.
|
Modifier and Type | Field and Description |
---|---|
private AsyncCallable<V> |
CombinedFuture.AsyncCallableInterruptibleTask.callable |
Modifier and Type | Method and Description |
---|---|
static <T> AsyncCallable<T> |
Callables.asAsyncCallable(java.util.concurrent.Callable<T> callable,
ListeningExecutorService listeningExecutorService)
Creates an
AsyncCallable from a Callable . |
Modifier and Type | Method and Description |
---|---|
<C> ListenableFuture<C> |
Futures.FutureCombiner.callAsync(AsyncCallable<C> combiner)
|
<C> ListenableFuture<C> |
Futures.FutureCombiner.callAsync(AsyncCallable<C> combiner,
java.util.concurrent.Executor executor)
Creates the
ListenableFuture which will return the result of calling call() in combiner when all futures complete, using the specified executor . |
Constructor and Description |
---|
AsyncCallableInterruptibleTask(AsyncCallable<V> callable,
java.util.concurrent.Executor listenerExecutor) |
CombinedFuture(ImmutableCollection<? extends ListenableFuture<?>> futures,
boolean allMustSucceed,
java.util.concurrent.Executor listenerExecutor,
AsyncCallable<V> callable) |