Annotation Interface Async
@Documented
@Retention(RUNTIME)
@Target({METHOD,ANNOTATION_TYPE})
@Executable
@Around
@Type(AsyncInterceptor.class)
public @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
-
Element Details
-
value
String valueThe name of the executor service to execute the task on. Defaults toTaskExecutors.SCHEDULED- Returns:
- The name of the thread pool
- Default:
- "scheduled"
-