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
Fields in com.google.common.util.concurrent declared as AsyncCallable Modifier and Type Field Description private AsyncCallable<V>CombinedFuture.AsyncCallableInterruptibleTask. callableprivate AsyncCallable<V>TrustedListenableFutureTask.TrustedFutureInterruptibleAsyncTask. callableMethods 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 anAsyncCallablefrom 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, java.util.concurrent.Executor executor)Creates theListenableFuturewhich will return the result of callingcall()incombinerwhen 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, java.util.concurrent.TimeUnit timeUnit, java.util.concurrent.ScheduledExecutorService executorService)Schedulescallableon the specifiedexecutor, returning aFuture.static <O> ListenableFuture<O>Futures. scheduleAsync(AsyncCallable<O> callable, java.time.Duration delay, java.util.concurrent.ScheduledExecutorService executorService)Schedulescallableon the specifiedexecutor, returning aFuture.<T> ListenableFuture<T>ExecutionSequencer. submitAsync(AsyncCallable<T> callable, java.util.concurrent.Executor executor)Enqueues a task to run when the previous task (if any) completes.static <O> ListenableFuture<O>Futures. submitAsync(AsyncCallable<O> callable, java.util.concurrent.Executor executor)Executescallableon the specifiedexecutor, returning aFuture.Constructors in com.google.common.util.concurrent with parameters of type AsyncCallable Constructor 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)TrustedFutureInterruptibleAsyncTask(AsyncCallable<V> callable)TrustedListenableFutureTask(AsyncCallable<V> callable)
-