public class AsyncExecutor extends Object
| Constructor and Description |
|---|
AsyncExecutor() |
AsyncExecutor(Executor executor) |
AsyncExecutor(int coreThreadPoolSize,
int maxThreadPoolSize,
long keepAliveTime,
TimeUnit unit) |
public AsyncExecutor()
public AsyncExecutor(int coreThreadPoolSize,
int maxThreadPoolSize,
long keepAliveTime,
TimeUnit unit)
public AsyncExecutor(Executor executor)
public ContinuableFuture<Void> execute(Throwables.Runnable<? extends Exception> command)
command - public ContinuableFuture<Void> execute(Throwables.Runnable<? extends Exception> command, Runnable onComplete)
command - onComplete - @Deprecated @SafeVarargs public final List<ContinuableFuture<Void>> execute(Throwables.Runnable<? extends Exception>... commands)
commands - public List<ContinuableFuture<Void>> execute(List<? extends Throwables.Runnable<? extends Exception>> commands)
commands - public <R> ContinuableFuture<R> execute(Callable<R> command)
R - command - public <R> ContinuableFuture<R> execute(Callable<R> command, Runnable onComplete)
R - command - onComplete - @Deprecated @SafeVarargs public final <R> List<ContinuableFuture<R>> execute(Callable<R>... commands)
R - commands - public <R> List<ContinuableFuture<R>> execute(Collection<? extends Callable<R>> commands)
R - commands - public ContinuableFuture<Void> execute(Throwables.Runnable<? extends Exception> action, int retryTimes, long retryInterval, Predicate<? super Exception> retryCondition)
action - retryTimes - retryInterval - retryCondition - public <R> ContinuableFuture<R> execute(Callable<R> action, int retryTimes, long retryInterval, BiPredicate<? super R,? super Exception> retryCondition)
R - action - retryTimes - retryInterval - retryCondition - public void shutdown()
Copyright © 2021. All rights reserved.