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 Details

    • asyncTaskExecutor

      protected final org.springframework.core.task.AsyncTaskExecutor asyncTaskExecutor
    • isAsyncTaskExecutorAopProxied

      protected final boolean isAsyncTaskExecutorAopProxied
  • Constructor Details

    • SpringAsyncTaskExecutor

      public SpringAsyncTaskExecutor(org.springframework.core.task.AsyncTaskExecutor asyncTaskExecutor)
  • Method Details

    • execute

      public void execute(Runnable task)
      Specified by:
      execute in interface org.flowable.common.engine.api.async.AsyncTaskExecutor
    • submit

      public CompletableFuture<?> submit(Runnable task)
      Specified by:
      submit in interface org.flowable.common.engine.api.async.AsyncTaskExecutor
    • submit

      public <T> CompletableFuture<T> submit(Callable<T> task)
      Specified by:
      submit in interface org.flowable.common.engine.api.async.AsyncTaskExecutor
    • shutdown

      public void shutdown()
      Specified by:
      shutdown in interface org.flowable.common.engine.api.async.AsyncTaskExecutor
    • getAsyncTaskExecutor

      public org.springframework.core.task.AsyncTaskExecutor getAsyncTaskExecutor()
    • getRemainingCapacity

      public int getRemainingCapacity()
      Specified by:
      getRemainingCapacity in interface org.flowable.common.engine.api.async.AsyncTaskExecutor