Class 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 Detail

      • asyncTaskExecutor

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

        protected final boolean isAsyncTaskExecutorAopProxied
    • Constructor Detail

      • SpringAsyncTaskExecutor

        public SpringAsyncTaskExecutor​(org.springframework.core.task.AsyncListenableTaskExecutor asyncTaskExecutor)
    • Method Detail

      • 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.AsyncListenableTaskExecutor getAsyncTaskExecutor()
      • getRemainingCapacity

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