public interface AsyncTaskExecutor
Runnable or Callable
asynchronously in a different thread.Executor,
ExecutorService| Modifier and Type | Method and Description |
|---|---|
void |
execute(Runnable task)
Execute the given
task |
int |
getRemainingCapacity() |
void |
shutdown()
Potentially shutdown the resources used by the async task executor.
|
<T> CompletableFuture<T> |
submit(Callable<T> task)
Submit a
Callable task for execution, receiving a Future representing the execution of the task. |
CompletableFuture<?> |
submit(Runnable task)
Submit a
Runnable task for execution, receiving a Future representing the execution of the task. |
void execute(Runnable task)
tasktask - the Runnable task to executeRejectedExecutionException - if the given task was not acceptedCompletableFuture<?> submit(Runnable task)
Runnable task for execution, receiving a Future representing the execution of the task.task - the Runnable to executeCompletableFuture representing pending completion of the taskRejectedExecutionException - if the given task was not submitted<T> CompletableFuture<T> submit(Callable<T> task)
Callable task for execution, receiving a Future representing the execution of the task.task - the Runnable to executeCompletableFuture representing pending completion of the taskRejectedExecutionException - if the given task was not submittedvoid shutdown()
int getRemainingCapacity()
Copyright © 2021 Flowable. All rights reserved.