Package com.databricks.jdbc.telemetry
Class CircuitBreakerManager
- java.lang.Object
-
- com.databricks.jdbc.telemetry.CircuitBreakerManager
-
public class CircuitBreakerManager extends Object
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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description io.github.resilience4j.circuitbreaker.CircuitBreakergetCircuitBreaker(String host)Retrieves the CircuitBreaker for the specified host.static CircuitBreakerManagergetInstance()
-
-
-
Method Detail
-
getInstance
public static CircuitBreakerManager getInstance()
-
getCircuitBreaker
public io.github.resilience4j.circuitbreaker.CircuitBreaker getCircuitBreaker(String host)
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.
-
-