| Package | Description |
|---|---|
| io.lettuce.core.failover | |
| io.lettuce.core.failover.api |
| Modifier and Type | Method and Description |
|---|---|
CircuitBreaker.State |
CircuitBreaker.getCurrentState()
Get the current state of the circuit breaker.
|
static CircuitBreaker.State |
CircuitBreaker.State.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CircuitBreaker.State[] |
CircuitBreaker.State.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
void |
CircuitBreaker.transitionTo(CircuitBreaker.State newState)
Transition the circuit breaker to the specified state.
|
| Modifier and Type | Method and Description |
|---|---|
CircuitBreaker.State |
RedisDatabase.getCircuitBreakerState()
Get the circuit breaker state for this database.
|
CircuitBreaker.State |
CircuitBreakerStateChangeEvent.getNewState()
Get the new state after the transition.
|
CircuitBreaker.State |
CircuitBreakerStateChangeEvent.getPreviousState()
Get the previous state before the transition.
|
| Constructor and Description |
|---|
CircuitBreakerStateChangeEvent(CircuitBreaker circuitBreaker,
CircuitBreaker.State previousState,
CircuitBreaker.State newState)
Create a new circuit breaker state change event.
|
Copyright © 2026 lettuce.io. All rights reserved.