Class AsyncExecutorInitializer

java.lang.Object
org.hawaiiframework.async.config.AsyncExecutorInitializer

public class AsyncExecutorInitializer extends Object
Utility to initialize executors for the asynchronous execution of methods using the @Async annotation.
Since:
3.0.0
  • Constructor Details

    • 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 Details

    • 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()
      Get the executor to configure.
      Returns:
      The task executor.