Uses of Interface
com.google.common.util.concurrent.AsyncCallable
Packages that use AsyncCallable
-
Uses of AsyncCallable in com.google.common.util.concurrent
Methods in com.google.common.util.concurrent that return AsyncCallableModifier and TypeMethodDescriptionstatic <T extends @Nullable Object>
AsyncCallable<T> Callables.asAsyncCallable(Callable<T> callable, ListeningExecutorService listeningExecutorService) Creates anAsyncCallablefrom aCallable.Methods in com.google.common.util.concurrent with parameters of type AsyncCallableModifier and TypeMethodDescription<C extends @Nullable Object>
ListenableFuture<C> Futures.FutureCombiner.callAsync(AsyncCallable<C> combiner, Executor executor) Creates theListenableFuturewhich will return the result of callingAsyncCallable.call()incombinerwhen all futures complete, using the specifiedexecutor.static <O extends @Nullable Object>
ListenableFuture<O> Futures.scheduleAsync(AsyncCallable<O> callable, long delay, TimeUnit timeUnit, ScheduledExecutorService executorService) Schedulescallableon the specifiedexecutor, returning aFuture.static <O extends @Nullable Object>
ListenableFuture<O> Futures.scheduleAsync(AsyncCallable<O> callable, Duration delay, ScheduledExecutorService executorService) Schedulescallableon the specifiedexecutor, returning aFuture.<T extends @Nullable Object>
ListenableFuture<T> ExecutionSequencer.submitAsync(AsyncCallable<T> callable, Executor executor) Enqueues a task to run when the previous task (if any) completes.static <O extends @Nullable Object>
ListenableFuture<O> Futures.submitAsync(AsyncCallable<O> callable, Executor executor) Executescallableon the specifiedexecutor, returning aFuture.