Annotation Interface CircuitBreaker


@Documented @Retention(RUNTIME) @Target(METHOD) public @interface CircuitBreaker
Annotation allow applying CircuitBreaker to a specific method
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
     
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Method must have the same signature as the original method
  • Element Details

    • value

      String value
      Returns:
      the name of the circuitBreaker breaker and part of the config path
    • fallbackMethod

      String fallbackMethod
      Method must have the same signature as the original method
      Returns:
      fallbackMethod method name to use when CallNotPermittedException occur
      Default:
      ""