Uses of Interface
com.google.common.util.concurrent.AsyncCallable
-
Packages that use AsyncCallable Package Description com.google.common.util.concurrent Concurrency utilities. -
-
Uses of AsyncCallable in com.google.common.util.concurrent
Methods in com.google.common.util.concurrent that return AsyncCallable Modifier and Type Method Description static <T> AsyncCallable<T>
Callables. asAsyncCallable(java.util.concurrent.Callable<T> callable, ListeningExecutorService listeningExecutorService)
Creates anAsyncCallable
from aCallable
.Methods in com.google.common.util.concurrent with parameters of type AsyncCallable Modifier and Type Method Description <C> ListenableFuture<C>
Futures.FutureCombiner. callAsync(AsyncCallable<C> combiner)
Deprecated.<C> ListenableFuture<C>
Futures.FutureCombiner. callAsync(AsyncCallable<C> combiner, java.util.concurrent.Executor executor)
Creates theListenableFuture
which will return the result of callingcall()
incombiner
when all futures complete, using the specifiedexecutor
.static <O> ListenableFuture<O>
Futures. scheduleAsync(AsyncCallable<O> callable, long delay, java.util.concurrent.TimeUnit timeUnit, java.util.concurrent.ScheduledExecutorService executorService)
Schedulescallable
on the specifiedexecutor
, returning aFuture
.static <O> ListenableFuture<O>
Futures. submitAsync(AsyncCallable<O> callable, java.util.concurrent.Executor executor)
Executescallable
on the specifiedexecutor
, returning aFuture
.
-