Package fr.enedis.chutney
Class SchedulingConfiguration
java.lang.Object
fr.enedis.chutney.SchedulingConfiguration
- All Implemented Interfaces:
org.springframework.scheduling.annotation.AsyncConfigurer
@Configuration
@EnableScheduling
@EnableAsync
public class SchedulingConfiguration
extends Object
implements org.springframework.scheduling.annotation.AsyncConfigurer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.core.task.TaskExecutorapplicationTaskExecutor(org.springframework.boot.task.ThreadPoolTaskExecutorBuilder builder) Default task executor for @Async (used for SSE for example) With a default with default configuration: org.springframework.boot.autoconfigure.task.TaskExecutionProperties.Poolorg.springframework.aop.interceptor.AsyncUncaughtExceptionHandlerpurgeService(TestCaseRepository testCaseRepository, ExecutionHistoryRepository executionRepository, CampaignRepository campaignRepository, CampaignExecutionRepository campaignExecutionRepository, Integer maxScenarioExecutionsConfig, Integer maxCampaignExecutionsConfig) org.springframework.core.task.TaskExecutorscheduledCampaignsExecutor(Integer threadForScheduledCampaigns) org.springframework.scheduling.TaskSchedulerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.scheduling.annotation.AsyncConfigurer
getAsyncExecutor
-
Constructor Details
-
SchedulingConfiguration
public SchedulingConfiguration()
-
-
Method Details
-
getAsyncUncaughtExceptionHandler
public org.springframework.aop.interceptor.AsyncUncaughtExceptionHandler getAsyncUncaughtExceptionHandler()- Specified by:
getAsyncUncaughtExceptionHandlerin interfaceorg.springframework.scheduling.annotation.AsyncConfigurer
-
taskScheduler
@Bean public org.springframework.scheduling.TaskScheduler taskScheduler() -
applicationTaskExecutor
@Bean public org.springframework.core.task.TaskExecutor applicationTaskExecutor(org.springframework.boot.task.ThreadPoolTaskExecutorBuilder builder) Default task executor for @Async (used for SSE for example) With a default with default configuration: org.springframework.boot.autoconfigure.task.TaskExecutionProperties.Pool -
scheduleCampaignsExecutor
@Bean public org.springframework.core.task.TaskExecutor scheduleCampaignsExecutor()- See Also:
-
scheduledCampaignsExecutor
@Bean public ExecutorService scheduledCampaignsExecutor(@Value("${chutney.server.schedule-campaigns.executor.pool-size:20}") Integer threadForScheduledCampaigns) - See Also:
-
purgeService
@Bean public PurgeService purgeService(TestCaseRepository testCaseRepository, ExecutionHistoryRepository executionRepository, CampaignRepository campaignRepository, CampaignExecutionRepository campaignExecutionRepository, @Value("${chutney.server.schedule-purge.max-scenario-executions:10}") Integer maxScenarioExecutionsConfig, @Value("${chutney.server.schedule-purge.max-campaign-executions:10}") Integer maxCampaignExecutionsConfig)
-