Class CircuitBreakerManager
java.lang.Object
com.databricks.jdbc.telemetry.CircuitBreakerManager
CircuitBreakerManager is a singleton that manages circuit breakers for different hosts. It
initializes circuit breakers with a predefined configuration and provides methods to retrieve or
reset them.
-
Method Summary
Modifier and TypeMethodDescriptionio.github.resilience4j.circuitbreaker.CircuitBreakergetCircuitBreaker(String host) Retrieves the CircuitBreaker for the specified host.static CircuitBreakerManager
-
Method Details
-
getInstance
-
getCircuitBreaker
Retrieves the CircuitBreaker for the specified host. If it does not exist, it creates a new one with the default configuration.- Parameters:
host- The host for which to retrieve the CircuitBreaker.- Returns:
- The CircuitBreaker instance for the specified host.
-