Annotation Interface Timeout


@Target({TYPE,METHOD}) @Retention(RUNTIME) public @interface Timeout
Specify a timeout period after which the remote invocation is aborted when no result is received. Applicable to all methods of a service interface or a service interface as a whole. Interface specific settings apply to all methods without explicit timeout specifications.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    long
    The timeout period after which local or remote invocations are aborted when no result is received.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final long
    Constant for no timeout.
    static final String
    Constant for timeout name in non-functional properties.
    static final long
    Constant for unset (i.e.
  • Field Details

  • Element Details

    • value

      long value
      The timeout period after which local or remote invocations are aborted when no result is received.
      Default:
      -2L