Class AsyncExecutorInitializer


  • public class AsyncExecutorInitializer
    extends Object
    Utility to initialize executors for the asynchronous execution of methods using the @Async annotation.
    Since:
    3.0.0
    Author:
    Rutger Lubbers, Paul Klos
    • Constructor Detail

      • AsyncExecutorInitializer

        public AsyncExecutorInitializer​(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory,
                                        ExecutorConfigurationProperties configuration)
        The constructor.
        Parameters:
        beanFactory - Spring's bean factory.
        configuration - The executor configuration.
    • Method Detail

      • initializeExecutors

        public void initializeExecutors()
        Initialize all configured executors in the bean factory and determine the default executor.
      • getDefaultExecutor

        public org.springframework.core.task.TaskExecutor getDefaultExecutor()