public class CircuitBreakerListenerAdapter extends Object implements CircuitBreakerListener
CircuitBreakerListener implementation in order for a user to implement only the methods
what he or she really needs.| Constructor and Description |
|---|
CircuitBreakerListenerAdapter() |
| 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.
|
public void onStateChanged(String circuitBreakerName, CircuitState state) throws Exception
CircuitBreakerListeneronStateChanged in interface CircuitBreakerListenerExceptionpublic void onEventCountUpdated(String circuitBreakerName, EventCount eventCount) throws Exception
CircuitBreakerListenerEventCount is updated.onEventCountUpdated in interface CircuitBreakerListenerExceptionpublic void onRequestRejected(String circuitBreakerName) throws Exception
CircuitBreakerListeneronRequestRejected in interface CircuitBreakerListenerExceptionCopyright © 2020 LeanCloud. All rights reserved.