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 TypeMethodDescriptionvoidExecute the giventaskintvoidshutdown()Potentially shutdown the resources used by the async task executor.Submit aRunnabletask for execution, receiving a Future representing the execution of the task.<T> CompletableFuture<T>Submit aCallabletask 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:AsyncTaskExecutorExecute the giventask- Specified by:
executein interfaceAsyncTaskExecutor- Parameters:
task- theRunnabletask to execute
-
submit
Description copied from interface:AsyncTaskExecutorSubmit aRunnabletask for execution, receiving a Future representing the execution of the task.- Specified by:
submitin interfaceAsyncTaskExecutor- Parameters:
task- theRunnableto execute- Returns:
- a
CompletableFuturerepresenting pending completion of the task
-
submit
Description copied from interface:AsyncTaskExecutorSubmit aCallabletask for execution, receiving a Future representing the execution of the task.- Specified by:
submitin interfaceAsyncTaskExecutor- Parameters:
task- theRunnableto execute- Returns:
- a
CompletableFuturerepresenting pending completion of the task
-
shutdown
public void shutdown()Description copied from interface:AsyncTaskExecutorPotentially shutdown the resources used by the async task executor.- Specified by:
shutdownin interfaceAsyncTaskExecutor
-
getAsyncTaskExecutor
-
getRemainingCapacity
public int getRemainingCapacity()- Specified by:
getRemainingCapacityin interfaceAsyncTaskExecutor
-