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
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, 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.EXECUTOR
is selected.- Returns:
- executor name
- Default:
""
-