public class SpringAsyncTaskExecutor extends Object implements AsyncTaskExecutor
| Modifier and Type | Field and Description |
|---|---|
protected org.springframework.core.task.AsyncListenableTaskExecutor |
asyncTaskExecutor |
protected boolean |
isAsyncTaskExecutorAopProxied |
| Constructor and Description |
|---|
SpringAsyncTaskExecutor(org.springframework.core.task.AsyncListenableTaskExecutor asyncTaskExecutor) |
| Modifier and Type | Method and Description |
|---|---|
void |
execute(Runnable task)
Execute the given
task |
org.springframework.core.task.AsyncListenableTaskExecutor |
getAsyncTaskExecutor() |
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. |
protected final org.springframework.core.task.AsyncListenableTaskExecutor asyncTaskExecutor
protected final boolean isAsyncTaskExecutorAopProxied
public SpringAsyncTaskExecutor(org.springframework.core.task.AsyncListenableTaskExecutor asyncTaskExecutor)
public void execute(Runnable task)
AsyncTaskExecutortaskexecute in interface AsyncTaskExecutortask - the Runnable task to executepublic CompletableFuture<?> submit(Runnable task)
AsyncTaskExecutorRunnable task for execution, receiving a Future representing the execution of the task.submit in interface AsyncTaskExecutortask - the Runnable to executeCompletableFuture representing pending completion of the taskpublic <T> CompletableFuture<T> submit(Callable<T> task)
AsyncTaskExecutorCallable task for execution, receiving a Future representing the execution of the task.submit in interface AsyncTaskExecutortask - the Runnable to executeCompletableFuture representing pending completion of the taskpublic void shutdown()
AsyncTaskExecutorshutdown in interface AsyncTaskExecutorpublic org.springframework.core.task.AsyncListenableTaskExecutor getAsyncTaskExecutor()
public int getRemainingCapacity()
getRemainingCapacity in interface AsyncTaskExecutorCopyright © 2023 Flowable. All rights reserved.