When both @Retry and @CircuitBreaker are applied to the same method in Resilience4j, what is the default execution order?
-
A
Retry wraps CircuitBreaker, so retries happen before the circuit counts a failure
-
B
CircuitBreaker wraps Retry, so the circuit is checked before retrying
-
C
Both execute simultaneously in separate threads
-
D
Only the outermost annotation takes effect