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 Detail

      • SpringJobExecutor

        public SpringJobExecutor()
    • Method Detail

      • 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 -