@Documented
@Retention(value=RUNTIME)
@Target(value={METHOD,ANNOTATION_TYPE,TYPE})
public @interface ExecuteOn
Micronaut will by default run end user operations in the same thread that executes the request. This annotation can be used to indicate that a different thread should be used when executing an operation.
Used to, for example, offload blocking I/O operations to specifically configured thread pool.
TaskExecutors.IO
Modifier and Type | Required Element and Description |
---|---|
java.lang.String |
value |
public abstract java.lang.String value
TaskExecutors.IO