Annotation Interface Timeout
@Inherited
@Documented
@Retention(RUNTIME)
@Target({METHOD,TYPE})
@InterceptorBinding
public @interface Timeout
The annotation to define a method execution timeout.
- 
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionThe timeout unit.longThe timeout value. 
- 
Element Details
- 
value
long valueThe timeout value. The value must be greater than or equal to 0. 0 means no timeout configured. Otherwise,FaultToleranceDefinitionExceptionoccurs.- Returns:
 - the timeout value
 
- Default:
 - 1000L
 
 - 
unit
ChronoUnit unitThe timeout unit. Defaults toChronoUnit.MILLIS.- Returns:
 - the timeout unit
 
- Default:
 - MILLIS
 
 
 -