Class ManagedAsyncJobExecutor

java.lang.Object
org.activiti.engine.impl.asyncexecutor.DefaultAsyncJobExecutor
org.activiti.engine.impl.asyncexecutor.ManagedAsyncJobExecutor
All Implemented Interfaces:
AsyncExecutor

public class ManagedAsyncJobExecutor extends DefaultAsyncJobExecutor
Simple JSR-236 async job executor to allocate threads through ManagedThreadFactory. Falls back to AsyncExecutor when a thread factory was not referenced in configuration. In Java EE 7, all application servers should provide access to a ManagedThreadFactory.
  • Field Details

    • threadFactory

      protected jakarta.enterprise.concurrent.ManagedThreadFactory threadFactory
  • Constructor Details

    • ManagedAsyncJobExecutor

      public ManagedAsyncJobExecutor()
  • Method Details

    • getThreadFactory

      public jakarta.enterprise.concurrent.ManagedThreadFactory getThreadFactory()
    • setThreadFactory

      public void setThreadFactory(jakarta.enterprise.concurrent.ManagedThreadFactory threadFactory)
    • initAsyncJobExecutionThreadPool

      protected void initAsyncJobExecutionThreadPool()
      Overrides:
      initAsyncJobExecutionThreadPool in class DefaultAsyncJobExecutor