Class ServerConfiguration

  • All Implemented Interfaces:
    org.springframework.scheduling.annotation.AsyncConfigurer

    @SpringBootApplication(exclude={org.springframework.boot.autoconfigure.liquibase.LiquibaseAutoConfiguration.class,org.springframework.boot.autoconfigure.jms.activemq.ActiveMQAutoConfiguration.class,org.springframework.boot.autoconfigure.mongo.MongoAutoConfiguration.class})
    @EnableScheduling
    @EnableAsync
    public class ServerConfiguration
    extends Object
    implements org.springframework.scheduling.annotation.AsyncConfigurer
    • Constructor Detail

      • ServerConfiguration

        public ServerConfiguration()
    • Method Detail

      • getAsyncUncaughtExceptionHandler

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

        @Bean
        public org.springframework.core.task.TaskExecutor scheduleCampaignsExecutor()
      • engineExecutor

        @Bean
        public org.springframework.core.task.TaskExecutor engineExecutor​(@Value("${chutney.scenarios.thread:20}")
                                                                         Integer threadForEngine)
      • campaignExecutor

        @Bean
        public org.springframework.core.task.TaskExecutor campaignExecutor​(@Value("${chutney.campaigns.thread:20}")
                                                                           Integer threadForCampaigns)
      • scheduledCampaignsExecutor

        @Bean
        public ExecutorService scheduledCampaignsExecutor​(@Value("${chutney.schedule.campaigns.thread:20}")
                                                          Integer threadForScheduledCampaigns)
      • executionConfiguration

        @Bean
        public ExecutionConfiguration executionConfiguration​(@Value("${chutney.engine.reporter.publisher.ttl:5}")
                                                             Long reporterTTL,
                                                             Executor engineExecutor,
                                                             @Value("${chutney.tasks.sql.nbLoggedRow:30}")
                                                             String nbLoggedRow,
                                                             @Value("${chutney.engine.delegation.user:#{null}}")
                                                             String delegateUser,
                                                             @Value("${chutney.engine.delegation.password:#{null}}")
                                                             String delegatePasword)
      • liquibase

        @Bean
        public liquibase.integration.spring.SpringLiquibase liquibase​(DataSource dataSource)