17 |
this.config = config; |
this.config = config; |
18 |
} |
} |
19 |
|
|
20 |
public void preInvoke(CircuitBreaker circuitBreaker) throws Exception |
public void preInvoke(CircuitBreaker<?> circuitBreaker) throws Exception |
21 |
{ |
{ |
22 |
// NO OP |
// NO OP |
23 |
} |
} |
24 |
|
|
25 |
public void postInvoke(CircuitBreaker circuitBreaker) throws Exception |
public void postInvoke(CircuitBreaker<?> circuitBreaker) throws Exception |
26 |
{ |
{ |
27 |
resetFailureCount(); |
resetFailureCount(); |
28 |
} |
} |
29 |
|
|
30 |
public void onError(CircuitBreaker circuitBreaker, Exception t) throws Exception |
public void onError(CircuitBreaker<?> circuitBreaker, Exception t) throws Exception |
31 |
{ |
{ |
32 |
int currentCount = failureCount.incrementAndGet(); |
int currentCount = failureCount.incrementAndGet(); |
33 |
int threshold = config.getTreshold(); |
int threshold = config.getTreshold(); |