public interface CircuitBreakerListener
CircuitBreaker events.| Modifier and Type | Method and Description |
|---|---|
void |
onEventCountUpdated(String circuitBreakerName,
EventCount eventCount)
Invoked when the circuit breaker's internal
EventCount is updated. |
void |
onRequestRejected(String circuitBreakerName)
Invoked when the circuit breaker rejects a request.
|
void |
onStateChanged(String circuitBreakerName,
CircuitState state)
Invoked when the circuit state is changed.
|
void onStateChanged(String circuitBreakerName, CircuitState state) throws Exception
Exceptionvoid onEventCountUpdated(String circuitBreakerName, EventCount eventCount) throws Exception
EventCount is updated.ExceptionCopyright © 2020 LeanCloud. All rights reserved.