Annotation Interface Async


An annotation that can be applied to any method that returns void or an instance of CompletionStage to indicate the actual execution should occur on the given thread pool.

Additional thread pools can be configured with the micronaut.executors configuration.

Since:
1.0
Author:
graemerocher
See Also:
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    The name of the executor service to execute the task on.
  • Element Details

    • value

      String value
      The name of the executor service to execute the task on. Defaults to TaskExecutors.SCHEDULED
      Returns:
      The name of the thread pool
      Default:
      "scheduled"