Annotation Type Async
-
@Documented @Retention(RUNTIME) @Target({METHOD,ANNOTATION_TYPE}) @Executable @Around @Type(AsyncInterceptor.class) public @interface AsyncAn annotation that can be applied to any method that returns void or an instance ofCompletionStageto indicate the actual execution should occur on the given thread pool.Additional thread pools can be configured with the
micronaut.executorsconfiguration.- Since:
- 1.0
- See Also:
UserExecutorConfiguration,TaskExecutors
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description java.lang.StringvalueThe 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"
-
-