Class CircuitBreakerListenerAdapter
java.lang.Object
com.linecorp.armeria.client.circuitbreaker.CircuitBreakerListenerAdapter
- All Implemented Interfaces:
CircuitBreakerListener
public class CircuitBreakerListenerAdapter extends Object implements CircuitBreakerListener
A skeletal
CircuitBreakerListener
implementation in order for a user to implement only the methods
what he or she really needs.-
Constructor Summary
Constructors Constructor Description CircuitBreakerListenerAdapter()
-
Method Summary
Modifier and Type Method Description void
onEventCountUpdated(String circuitBreakerName, EventCount eventCount)
Invoked when the circuit breaker's internalEventCount
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.
-
Constructor Details
-
CircuitBreakerListenerAdapter
public CircuitBreakerListenerAdapter()
-
-
Method Details
-
onStateChanged
Description copied from interface:CircuitBreakerListener
Invoked when the circuit state is changed.- Specified by:
onStateChanged
in interfaceCircuitBreakerListener
- Throws:
Exception
-
onEventCountUpdated
Description copied from interface:CircuitBreakerListener
Invoked when the circuit breaker's internalEventCount
is updated.- Specified by:
onEventCountUpdated
in interfaceCircuitBreakerListener
- Throws:
Exception
-
onRequestRejected
Description copied from interface:CircuitBreakerListener
Invoked when the circuit breaker rejects a request.- Specified by:
onRequestRejected
in interfaceCircuitBreakerListener
- Throws:
Exception
-