Package org.hawaiiframework.async.config
Class AsyncExecutorInitializer
java.lang.Object
org.hawaiiframework.async.config.AsyncExecutorInitializer
Utility to initialize executors for the asynchronous execution of methods using the @
Async annotation.- Since:
- 3.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionAsyncExecutorInitializer(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory, ExecutorConfigurationProperties configuration) The constructor. -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.core.task.TaskExecutorGet the executor to configure.voidInitialize all configured executors in the bean factory and determine the default executor.
-
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.
-