Uses of Interface
com.google.common.util.concurrent.AsyncCallable
Packages that use AsyncCallable
-
Uses of AsyncCallable in com.google.common.util.concurrent
Fields in com.google.common.util.concurrent declared as AsyncCallableModifier and TypeFieldDescriptionprivate final AsyncCallable
<V> CombinedFuture.AsyncCallableInterruptibleTask.callable
private final AsyncCallable
<V> TrustedListenableFutureTask.TrustedFutureInterruptibleAsyncTask.callable
Methods in com.google.common.util.concurrent that return AsyncCallableModifier and TypeMethodDescriptionstatic <T> AsyncCallable
<T> Callables.asAsyncCallable
(Callable<T> callable, ListeningExecutorService listeningExecutorService) Creates anAsyncCallable
from aCallable
.Methods in com.google.common.util.concurrent with parameters of type AsyncCallableModifier and TypeMethodDescription<C> ListenableFuture
<C> Futures.FutureCombiner.callAsync
(AsyncCallable<C> combiner, Executor executor) Creates theListenableFuture
which will return the result of callingcall()
incombiner
when all futures complete, using the specifiedexecutor
.(package private) static <V> TrustedListenableFutureTask
<V> TrustedListenableFutureTask.create
(AsyncCallable<V> callable) static <O> ListenableFuture
<O> Futures.scheduleAsync
(AsyncCallable<O> callable, long delay, TimeUnit timeUnit, ScheduledExecutorService executorService) Schedulescallable
on the specifiedexecutor
, returning aFuture
.static <O> ListenableFuture
<O> Futures.scheduleAsync
(AsyncCallable<O> callable, Duration delay, ScheduledExecutorService executorService) Schedulescallable
on the specifiedexecutor
, returning aFuture
.<T> ListenableFuture
<T> ExecutionSequencer.submitAsync
(AsyncCallable<T> callable, Executor executor) Enqueues a task to run when the previous task (if any) completes.static <O> ListenableFuture
<O> Futures.submitAsync
(AsyncCallable<O> callable, Executor executor) Executescallable
on the specifiedexecutor
, returning aFuture
.Constructors in com.google.common.util.concurrent with parameters of type AsyncCallableModifierConstructorDescription(package private)
AsyncCallableInterruptibleTask
(AsyncCallable<V> callable, Executor listenerExecutor) (package private)
CombinedFuture
(ImmutableCollection<? extends ListenableFuture<?>> futures, boolean allMustSucceed, Executor listenerExecutor, AsyncCallable<V> callable) (package private)
TrustedFutureInterruptibleAsyncTask
(AsyncCallable<V> callable) (package private)
TrustedListenableFutureTask
(AsyncCallable<V> callable)