Class ExecutorConfig


  • @Configuration
    public class ExecutorConfig
    extends java.lang.Object
    Configuration for a task executor for running scheduled tasks.
    • Constructor Summary

      Constructors 
      Constructor Description
      ExecutorConfig()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.concurrent.Executor productionExecutor()
      Task executor for running in regular production or development modes
      java.util.concurrent.Executor testExecutor()
      Task executor for running in test modes.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ExecutorConfig

        public ExecutorConfig()
    • Method Detail

      • productionExecutor

        @Bean(name="scheduledTaskExecutor")
        @Profile({"prod","dev","ncbi","analysis","sync","processing","email","web"})
        @DependsOn("springLiquibase")
        public java.util.concurrent.Executor productionExecutor()
        Task executor for running in regular production or development modes
        Returns:
        a TaskExecutor
      • testExecutor

        @Bean(name="scheduledTaskExecutor")
        @Profile({"it","test"})
        @DependsOn("springLiquibase")
        public java.util.concurrent.Executor testExecutor()
        Task executor for running in test modes. This adds a test admin user ot the database before executing
        Returns:
        a TaskExecutor