Package org.flowable.common.spring.async
Class SpringAsyncTaskExecutor
- java.lang.Object
-
- org.flowable.common.spring.async.SpringAsyncTaskExecutor
-
- All Implemented Interfaces:
org.flowable.common.engine.api.async.AsyncTaskExecutor
public class SpringAsyncTaskExecutor extends Object implements org.flowable.common.engine.api.async.AsyncTaskExecutor
- Author:
- Filip Hrisafov, Joram Barrez
-
-
Field Summary
Fields Modifier and Type Field Description protected org.springframework.core.task.AsyncListenableTaskExecutorasyncTaskExecutorprotected booleanisAsyncTaskExecutorAopProxied
-
Constructor Summary
Constructors Constructor Description SpringAsyncTaskExecutor(org.springframework.core.task.AsyncListenableTaskExecutor asyncTaskExecutor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute(Runnable task)org.springframework.core.task.AsyncListenableTaskExecutorgetAsyncTaskExecutor()intgetRemainingCapacity()voidshutdown()CompletableFuture<?>submit(Runnable task)<T> CompletableFuture<T>submit(Callable<T> task)
-
-
-
Method Detail
-
execute
public void execute(Runnable task)
- Specified by:
executein interfaceorg.flowable.common.engine.api.async.AsyncTaskExecutor
-
submit
public CompletableFuture<?> submit(Runnable task)
- Specified by:
submitin interfaceorg.flowable.common.engine.api.async.AsyncTaskExecutor
-
submit
public <T> CompletableFuture<T> submit(Callable<T> task)
- Specified by:
submitin interfaceorg.flowable.common.engine.api.async.AsyncTaskExecutor
-
shutdown
public void shutdown()
- Specified by:
shutdownin interfaceorg.flowable.common.engine.api.async.AsyncTaskExecutor
-
getAsyncTaskExecutor
public org.springframework.core.task.AsyncListenableTaskExecutor getAsyncTaskExecutor()
-
getRemainingCapacity
public int getRemainingCapacity()
- Specified by:
getRemainingCapacityin interfaceorg.flowable.common.engine.api.async.AsyncTaskExecutor
-
-