public interface CircuitBreakerMetrics
| Modifier and Type | Method and Description |
|---|---|
void |
onCallBreakerOpenFailure()
Invoked for each call when the future is completed with
`akka.pattern.CircuitBreakerOpenException`
|
void |
onCallFailure(long elapsedNanos)
Invoked for each call when the future is completed with exception, except for
`TimeoutException` and `CircuitBreakerOpenException` that are handled by separate methods.
|
void |
onCallSuccess(long elapsedNanos)
Invoked for each successful call.
|
void |
onCallTimeoutFailure(long elapsedNanos)
Invoked for each call when the future is completed with `java.util.concurrent.TimeoutException`
|
void |
onClose()
Invoked when the circuit breaker transitions to the close state.
|
void |
onHalfOpen()
Invoked when the circuit breaker transitions to the half-open state after reset timeout.
|
void |
onOpen()
Invoked when the circuit breaker transitions to the open state.
|
void |
stop()
Called when the circuit breaker is removed, e.g.
|
void onOpen()
void onClose()
void onHalfOpen()
void onCallSuccess(long elapsedNanos)
elapsedNanos - the elapsed duration of the call in nanosecondsvoid onCallFailure(long elapsedNanos)
elapsedNanos - the elapsed duration of the call in nanosecondsvoid onCallTimeoutFailure(long elapsedNanos)
elapsedNanos - the elapsed duration of the call in nanosecondsvoid onCallBreakerOpenFailure()
void stop()
CircuitBreakerMetricsProvider.start(java.lang.String).