io.helidon.faulttolerance.CircuitBreaker

Description

Configuration of a circuit breaker

Configuration options

KeyTypeDefaultDescription
volumeInteger10Rolling window size used to calculate ratio of failed requests; must be at least 1 and its product with the configured error ratio must not exceed 2,147,483,647
delayDurationPT5SHow long to wait before transitioning from open to half-open state; must not be negative and must be small enough to represent in milliseconds
error-ratioInteger60How many failures out of 100 will trigger the circuit to open; must be between 1 and 100, inclusive, and its product with the configured volume must not exceed 2,147,483,647
enable-metricsBooleanfalseFlag to enable metrics for this instance
success-thresholdInteger1How many successful calls will close a half-open circuit; must be at least 1

Usages


See the manifest for all available types.

Copyright © 2018, 2026 Oracle and/or its affiliates.