@Retention(value=RUNTIME)
@Target(value={METHOD,TYPE})
@Documented
public @interface CircuitBreaker
CircuitBreaker for details. If using Spring,
name and fallbackMethod can be resolved using Spring Expression Language (SpEL).| Modifier and Type | Required Element and Description |
|---|---|
java.lang.String |
name
Name of the circuit breaker.
|
| Modifier and Type | Optional Element and Description |
|---|---|
java.lang.String |
fallbackMethod
fallbackMethod method name.
|
public abstract java.lang.String name
#root.args[0], #p0 or #a0. And method name can be accessed via
#root.methodName