Class SchedulerConfiguration

java.lang.Object
ee.datel.dogis.config.SchedulerConfiguration
All Implemented Interfaces:
org.springframework.scheduling.annotation.AsyncConfigurer, org.springframework.scheduling.annotation.SchedulingConfigurer

@Configuration @EnableScheduling @EnableAsync public class SchedulerConfiguration extends Object implements org.springframework.scheduling.annotation.SchedulingConfigurer, org.springframework.scheduling.annotation.AsyncConfigurer
Scheduler and async executor configurer.

Initiates shared thread pool.

Defines AsyncUncaughtExceptionHandler.

Author:
aldoa
  • Method Details

    • configureTasks

      public void configureTasks(org.springframework.scheduling.config.ScheduledTaskRegistrar taskRegistrar)
      Specified by:
      configureTasks in interface org.springframework.scheduling.annotation.SchedulingConfigurer
    • getAsyncExecutor

      public org.springframework.core.task.AsyncTaskExecutor getAsyncExecutor()
      Specified by:
      getAsyncExecutor in interface org.springframework.scheduling.annotation.AsyncConfigurer
    • getAsyncUncaughtExceptionHandler

      public org.springframework.aop.interceptor.AsyncUncaughtExceptionHandler getAsyncUncaughtExceptionHandler()
      Specified by:
      getAsyncUncaughtExceptionHandler in interface org.springframework.scheduling.annotation.AsyncConfigurer