Class AsyncExecutorFactory

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

public class AsyncExecutorFactory extends Object
Factory to create executors for the asynchronous execution of methods using the Async annotation.

This factory creates the executors as defined in the executors section in the async configuration.

Since:
3.0.0
  • Constructor Details

    • AsyncExecutorFactory

      public AsyncExecutorFactory(BeanRegistrar registrar, ExecutorConfigurationProperties properties)
      The constructor.
      Parameters:
      registrar - The bean registrar.
      properties - The executor properties.
  • Method Details

    • createExecutors

      public void createExecutors()
      Create executors from the configured executor properties.
    • getExecutorNames

      public Set<String> getExecutorNames()
      Get the executor names.
      Returns:
      The, never null, executor names.