Package | Description |
---|---|
com.google.common.util.concurrent |
Concurrency utilities.
|
Modifier and Type | Method and Description |
---|---|
static <T> AsyncCallable<T> |
Callables.asAsyncCallable(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)
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. |
<C> ListenableFuture<C> |
Futures.FutureCombiner.callAsync(AsyncCallable<C> combiner,
Executor executor)
Creates the
ListenableFuture which will return the result of calling call() in combiner when all futures complete, using the specified executor . |
static <O> ListenableFuture<O> |
Futures.scheduleAsync(AsyncCallable<O> callable,
long delay,
TimeUnit timeUnit,
ScheduledExecutorService executorService)
Schedules
callable on the specified executor , returning a Future . |
static <O> ListenableFuture<O> |
Futures.submitAsync(AsyncCallable<O> callable,
Executor executor)
Executes
callable on the specified executor , returning a Future . |
Copyright © 2010–2017. All rights reserved.