public static class HystrixCircuitBreaker.HystrixCircuitBreakerImpl extends java.lang.Object implements HystrixCircuitBreaker
HystrixCircuitBreaker.HystrixCircuitBreaker.Factory, HystrixCircuitBreaker.HystrixCircuitBreakerImpl, HystrixCircuitBreaker.NoOpCircuitBreaker| Modifier | Constructor and Description |
|---|---|
protected |
HystrixCircuitBreakerImpl(HystrixCommandKey key,
HystrixCommandGroupKey commandGroup,
HystrixCommandProperties properties,
HystrixCommandMetrics metrics) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
allowRequest()
Every
HystrixCommand requests asks this if it is allowed to proceed or not. |
boolean |
allowSingleTest() |
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. |
protected HystrixCircuitBreakerImpl(HystrixCommandKey key, HystrixCommandGroupKey commandGroup, HystrixCommandProperties properties, HystrixCommandMetrics metrics)
public void markSuccess()
HystrixCircuitBreakerHystrixCommand as part of feedback mechanism when in a half-open state.markSuccess in interface HystrixCircuitBreakerpublic boolean allowRequest()
HystrixCircuitBreakerHystrixCommand 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 HystrixCircuitBreakerpublic boolean allowSingleTest()
public boolean isOpen()
HystrixCircuitBreakerisOpen in interface HystrixCircuitBreaker