@Inherited @Retention(value=RUNTIME) @Documented @InterceptorBinding @Target(value={METHOD,TYPE}) public @interface CircuitBreaker
Modifier and Type | Optional Element and Description |
---|---|
long |
delay
The delay.
|
java.time.temporal.ChronoUnit |
delayUnit |
java.lang.Class<? extends java.lang.Throwable>[] |
failOn
Define the failure criteria
|
double |
failureRatio
The failure threshold to trigger the circuit to open.
|
int |
requestVolumeThreshold
The number of consecutive requests in a rolling window
that will trip the circuit.
|
int |
successThreshold
For an open circuit, after the delay period is reached, once the successThreshold
is reached, the circuit is back to close again.
|
public abstract java.lang.Class<? extends java.lang.Throwable>[] failOn
public abstract long delay
public abstract java.time.temporal.ChronoUnit delayUnit
public abstract int requestVolumeThreshold
public abstract double failureRatio