public interface HystrixCircuitBreaker
HystrixCommand
execution and will stop allowing executions if failures have gone past the defined threshold.
It will then allow single retries after a defined sleepWindow until the execution succeeds at which point it will again close the circuit and allow executions again.
Modifier and Type | Interface and Description |
---|---|
static class |
HystrixCircuitBreaker.Factory |
static class |
HystrixCircuitBreaker.HystrixCircuitBreakerImpl
The default production implementation of
HystrixCircuitBreaker . |
static class |
HystrixCircuitBreaker.NoOpCircuitBreaker
An implementation of the circuit breaker that does nothing.
|
Modifier and Type | Method and Description |
---|---|
boolean |
allowRequest()
Every
HystrixCommand requests asks this if it is allowed to proceed or not. |
boolean |
isOpen()
Whether the circuit is currently open (tripped).
|
void |
markSuccess()
Invoked on successful executions from
HystrixCommand as part of feedback mechanism when in a half-open state. |
boolean allowRequest()
HystrixCommand
requests asks this if it is allowed to proceed or not.
This takes into account the half-open logic which allows some requests through when determining if it should be closed again.
boolean isOpen()
void markSuccess()
HystrixCommand
as part of feedback mechanism when in a half-open state.