public class ExceptionCircuitBreaker extends AbstractCircuitBreaker
CircuitBreaker.StatecurrentState, nextRetryTimestamp, recoveryTimeoutMs, rule| Constructor and Description |
|---|
ExceptionCircuitBreaker(DegradeRule rule) |
| Modifier and Type | Method and Description |
|---|---|
void |
onRequestComplete(Context context)
Record a completed request with the context and handle state transformation of the circuit breaker.
|
protected void |
resetStat()
Reset the statistic data.
|
currentState, fromCloseToOpen, fromHalfOpenToClose, fromHalfOpenToOpen, fromOpenToHalfOpen, getRule, retryTimeoutArrived, transformToOpen, tryPass, updateNextRetryTimestamppublic ExceptionCircuitBreaker(DegradeRule rule)
protected void resetStat()
AbstractCircuitBreakerpublic void onRequestComplete(Context context)
CircuitBreakerRecord a completed request with the context and handle state transformation of the circuit breaker.
Called when a passed invocation finished.
context - context of current invocationCopyright © 2021 Alibaba Group. All rights reserved.