Package org.flowable.common.spring.async
Class SpringAsyncTaskExecutor
java.lang.Object
org.flowable.common.spring.async.SpringAsyncTaskExecutor
- All Implemented Interfaces:
AsyncTaskExecutor
- Author:
- Filip Hrisafov, Joram Barrez
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Execute the giventask
int
void
shutdown()
Potentially shutdown the resources used by the async task executor.Submit aRunnable
task for execution, receiving a Future representing the execution of the task.<T> CompletableFuture<T>
Submit aCallable
task for execution, receiving a Future representing the execution of the task.
-
Field Details
-
asyncTaskExecutor
-
isAsyncTaskExecutorAopProxied
protected final boolean isAsyncTaskExecutorAopProxied
-
-
Constructor Details
-
SpringAsyncTaskExecutor
-
-
Method Details
-
execute
Description copied from interface:AsyncTaskExecutor
Execute the giventask
- Specified by:
execute
in interfaceAsyncTaskExecutor
- Parameters:
task
- theRunnable
task to execute
-
submit
Description copied from interface:AsyncTaskExecutor
Submit aRunnable
task for execution, receiving a Future representing the execution of the task.- Specified by:
submit
in interfaceAsyncTaskExecutor
- Parameters:
task
- theRunnable
to execute- Returns:
- a
CompletableFuture
representing pending completion of the task
-
submit
Description copied from interface:AsyncTaskExecutor
Submit aCallable
task for execution, receiving a Future representing the execution of the task.- Specified by:
submit
in interfaceAsyncTaskExecutor
- Parameters:
task
- theRunnable
to execute- Returns:
- a
CompletableFuture
representing pending completion of the task
-
shutdown
public void shutdown()Description copied from interface:AsyncTaskExecutor
Potentially shutdown the resources used by the async task executor.- Specified by:
shutdown
in interfaceAsyncTaskExecutor
-
getAsyncTaskExecutor
-
getRemainingCapacity
public int getRemainingCapacity()- Specified by:
getRemainingCapacity
in interfaceAsyncTaskExecutor
-