@Inherited @Retention(value=RUNTIME) @Documented @InterceptorBinding @Target(value={METHOD,TYPE}) public @interface CircuitBreaker
Modifier and Type | Optional Element and Description |
---|---|
long |
delay
The delay.
|
ChronoUnit |
delayUnit |
Class<? extends 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 long delay
public abstract ChronoUnit delayUnit
public abstract int requestVolumeThreshold
public abstract double failureRatio
Copyright © 2017–2018 Eclipse MicroProfile. All rights reserved.