- <init>
Creates a Circuit that opens after a single failure, closes after a single
success, and has a 1 minu
- getState
Gets the state of the circuit.
- withFailureThreshold
Sets the ratio of successive failures that must occur when in a closed state in
order to open the ci
- withSuccessThreshold
Sets the ratio of successive successful executions that must occur when in a
half-open state in orde
- allowsExecution
Returns whether the circuit allows execution, possibly triggering a state
transition.
- close
Closes the circuit.
- getDelay
Returns the delay before allowing another execution on the circuit. Defaults to
Duration#ZERO.
- getFailureThreshold
Gets the ratio of successive failures that must occur when in a closed state in
order to open the ci
- getSuccessThreshold
Gets the ratio of successive successful executions that must occur when in a
half-open state in orde
- getTimeout
Returns timeout for executions else null if none has been configured.
- isFailure
- isOpen
Returns whether the circuit is open.