Annotation Interface Ft.Timeout

Enclosing class:
Ft

@Retention(CLASS) @Documented @Intercepted public static @interface Ft.Timeout
The annotated method (or all methods on annotated type) will time out according to the configuration.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    boolean
    Flag to indicate that code must be executed in current thread instead of in an executor's thread.
    If named, an attempt will be made to find a named Timeout instance in service registry.
    Duration of timeout.
  • Element Details

    • name

      String name
      If named, an attempt will be made to find a named Timeout instance in service registry. If not found, a new timeout will be created based on values on this annotation.
      Returns:
      name of this timeout
      Default:
      ""
    • time

      String time
      Duration of timeout. Defaults to PT10S (10 seconds).
      Returns:
      timeout duration
      Default:
      "PT10S"
    • currentThread

      boolean currentThread
      Flag to indicate that code must be executed in current thread instead of in an executor's thread. This flag is false by default.
      Returns:
      whether to run on current thread (true), or in an executor's thread (false, default)
      Default:
      false