Annotation Interface CircuitBreaker


@Retention(RUNTIME) @Target({METHOD,TYPE}) @Around @Documented @Executable public @interface CircuitBreaker
This annotation can be applied to a class or a specific method. Applying it on a class is equivalent to applying it on all its public methods. The annotation enables backend monitoring for all methods where it is applied. Backend monitoring is performed via a circuit breaker. See CircuitBreaker for details.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Name of the circuit breaker.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    fallbackMethod method name.
  • Element Details

    • name

      String name
      Name of the circuit breaker.
      Returns:
      the name of the circuit breaker
    • fallbackMethod

      String fallbackMethod
      fallbackMethod method name.
      Returns:
      fallbackMethod method name.
      Default:
      ""