@Experimental public class CircuitBreakerConfig extends Object
This class contains configuration options for circuit breaker thresholds, tracked exceptions, and metrics window size.
| Modifier and Type | Class and Description |
|---|---|
static class |
CircuitBreakerConfig.Builder
Builder for
CircuitBreakerConfig. |
| Modifier and Type | Field and Description |
|---|---|
static CircuitBreakerConfig |
DEFAULT |
| Modifier and Type | Method and Description |
|---|---|
static CircuitBreakerConfig.Builder |
builder()
Create a new builder for
CircuitBreakerConfig. |
float |
getFailureRateThreshold()
Get the failure rate threshold percentage (0-100).
|
int |
getMetricsWindowSize()
Get the metrics window size in seconds.
|
int |
getMinimumNumberOfFailures()
Get the minimum number of failures required before the circuit breaker can open.
|
Set<Class<? extends Throwable>> |
getTrackedExceptions()
Get the set of exception classes that are tracked for circuit breaker metrics.
|
String |
toString() |
public static final CircuitBreakerConfig DEFAULT
public static CircuitBreakerConfig.Builder builder()
CircuitBreakerConfig.public Set<Class<? extends Throwable>> getTrackedExceptions()
public float getFailureRateThreshold()
public int getMinimumNumberOfFailures()
public int getMetricsWindowSize()
Copyright © 2026 lettuce.io. All rights reserved.