Class SpringJobExecutor


public class SpringJobExecutor extends JobExecutor

This is a spring based implementation of the JobExecutor using spring abstraction TaskExecutor for performing background task execution.

The idea behind this implementation is to externalize the configuration of the task executor, so it can leverage to Application servers controller thread pools, for example using the commonj API. The use of unmanaged thread in application servers is discouraged by the Java EE spec.

Pablo Ganga
  • Constructor Details

    • SpringJobExecutor

      public SpringJobExecutor()
  • Method Details

    • getTaskExecutor

      public org.springframework.core.task.TaskExecutor getTaskExecutor()
    • setTaskExecutor

      public void setTaskExecutor(org.springframework.core.task.TaskExecutor taskExecutor)
      Required spring injected TaskExecutor} implementation that will be used to execute runnable jobs.
      taskExecutor -
    • executeJobs

      public void executeJobs(List<String> jobIds, ProcessEngineImpl processEngine)
      Specified by:
      executeJobs in class JobExecutor
    • startExecutingJobs

      protected void startExecutingJobs()
      Specified by:
      startExecutingJobs in class JobExecutor
    • stopExecutingJobs

      protected void stopExecutingJobs()
      Specified by:
      stopExecutingJobs in class JobExecutor