Annotation Interface Timeout


The annotation to define a method execution timeout.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
     
    long
    The timeout value.
  • Element Details

    • value

      long value
      The timeout value. The value must be greater than or equal to 0. 0 means no timeout configured. Otherwise, FaultToleranceDefinitionException occurs.
      Returns:
      the timeout value
      Default:
      1000L
    • unit

      Returns:
      the timeout unit
      Default:
      MILLIS