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.
  • Element Details

    • value

      Thread type for invocation.
      Returns:
      thread type
      Default:
      PLATFORM
    • timeout

      long timeout
      Waiting timeout.
      Returns:
      waiting timeout
      Default:
      10000L
    • unit

      TimeUnit unit
      Waiting time unit.
      Returns:
      waiting time unit
      Default:
      MILLISECONDS
    • executorName

      String executorName
      Name of executor when ExecuteOn.ThreadType.EXECUTOR is selected.
      Returns:
      executor name
      Default:
      ""