Annotation Type 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 ofCompletionStage
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
- See Also:
UserExecutorConfiguration
,TaskExecutors
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description java.lang.String
value
The name of the executor service to execute the task on.
-
-
-
Element Detail
-
value
java.lang.String value
The name of the executor service to execute the task on. Defaults toTaskExecutors.SCHEDULED
- Returns:
- The name of the thread pool
- Default:
- "scheduled"
-
-