public static class HystrixCircuitBreaker.NoOpCircuitBreaker extends java.lang.Object implements HystrixCircuitBreaker
HystrixCircuitBreaker.Factory, HystrixCircuitBreaker.HystrixCircuitBreakerImpl, HystrixCircuitBreaker.NoOpCircuitBreaker
Constructor and Description |
---|
NoOpCircuitBreaker() |
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. |
public boolean allowRequest()
HystrixCircuitBreaker
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.
allowRequest
in interface HystrixCircuitBreaker
public boolean isOpen()
HystrixCircuitBreaker
isOpen
in interface HystrixCircuitBreaker
public void markSuccess()
HystrixCircuitBreaker
HystrixCommand
as part of feedback mechanism when in a half-open state.markSuccess
in interface HystrixCircuitBreaker