@Experimental public class CircuitBreakerStateChangeEvent extends Object
| Constructor and Description |
|---|
CircuitBreakerStateChangeEvent(CircuitBreaker circuitBreaker,
CircuitBreaker.State previousState,
CircuitBreaker.State newState)
Create a new circuit breaker state change event.
|
| Modifier and Type | Method and Description |
|---|---|
CircuitBreaker |
getCircuitBreaker()
Get the circuit breaker instance that changed state.
|
CircuitBreaker.State |
getNewState()
Get the new state after the transition.
|
CircuitBreaker.State |
getPreviousState()
Get the previous state before the transition.
|
long |
getTimestamp()
Get the timestamp when the state change occurred.
|
String |
toString() |
public CircuitBreakerStateChangeEvent(CircuitBreaker circuitBreaker, CircuitBreaker.State previousState, CircuitBreaker.State newState)
circuitBreaker - the circuit breaker instancepreviousState - the previous statenewState - the new statepublic CircuitBreaker getCircuitBreaker()
public CircuitBreaker.State getPreviousState()
public CircuitBreaker.State getNewState()
public long getTimestamp()
Copyright © 2026 lettuce.io. All rights reserved.