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.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Type of thread to use for invocation. -
Optional Element Summary
Modifier and TypeOptional ElementDescriptionName of executor whenExecuteOn.ThreadType.EXECUTOR
is selected.long
Waiting timeout.Waiting time unit.Thread type for invocation.
-
Element Details
-
value
ExecuteOn.ThreadType valueThread type for invocation.- Returns:
- thread type
- Default:
PLATFORM
-
timeout
long timeoutWaiting timeout.- Returns:
- waiting timeout
- Default:
10000L
-
unit
TimeUnit unitWaiting time unit.- Returns:
- waiting time unit
- Default:
MILLISECONDS
-
executorName
String executorNameName of executor whenExecuteOn.ThreadType.EXECUTOR
is selected.- Returns:
- executor name
- Default:
""
-