public interface CircuitBreakerMetricsProvider
| Modifier and Type | Method and Description |
|---|---|
CircuitBreakerMetrics |
start(java.lang.String breakerId)
Start metrics collection for the circuit breaker with `breakerId` identifier.
|
CircuitBreakerMetrics start(java.lang.String breakerId)
CircuitBreakerMetrics that will be used for this circuit
breaker instance.
The methods of the `CircuitBreakerMetrics` will be invoked when the circuit breaker is used
or changes state. CircuitBreakerMetrics.stop() is called when the circuit breaker is
removed, e.g. expired due to inactivity.
`stop` and `start` are also also invoked if the circuit breaker is re-configured.
breakerId - the identifider for the circuit breaker.