Module io.helidon.microprofile.cdi
Package io.helidon.microprofile.cdi
Annotation Interface ExecuteOn
@Documented
@Retention(RUNTIME)
@Target({METHOD,TYPE})
@Inherited
@InterceptorBinding
public @interface ExecuteOn
Annotates a CDI bean method that shall be executed on a new thread. If the method returns
CompletableFuture or CompletionStage,
it is assumed to be asynchronous.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumType of thread to use for invocation. -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionName of executor whenExecuteOn.ThreadType.EXECUTORis selected.longWaiting timeout, used when the method is synchronous.Waiting time unit, used when the method is synchronous.Thread type for invocation.
-
Element Details
-
value
ExecuteOn.ThreadType valueThread type for invocation.- Returns:
- thread type
- Default:
PLATFORM
-
timeout
long timeoutWaiting timeout, used when the method is synchronous.- Returns:
- waiting timeout
- Default:
10000L
-
unit
TimeUnit unitWaiting time unit, used when the method is synchronous.- Returns:
- waiting time unit
- Default:
MILLISECONDS
-
executorName
String executorNameName of executor whenExecuteOn.ThreadType.EXECUTORis selected.- Returns:
- executor name
- Default:
""
-