trait CircuitBreakerTelemetry extends AnyRef
- Alphabetic
- By Inheritance
- CircuitBreakerTelemetry
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- Protected
Abstract Value Members
- abstract def onCallBreakerOpenFailure(): Unit
Invoked for each call when the future is completed with
akka.pattern.CircuitBreakerOpenException
- abstract def onCallFailure(elapsedNanos: Long): Unit
Invoked for each call when the future is completed with exception, except for and akka.pattern.CircuitBreakerOpenException that are handled by separate methods.
Invoked for each call when the future is completed with exception, except for and akka.pattern.CircuitBreakerOpenException that are handled by separate methods.
- elapsedNanos
the elapsed duration of the call in nanoseconds
- abstract def onCallSuccess(elapsedNanos: Long): Unit
Invoked for each successful call.
Invoked for each successful call.
- elapsedNanos
the elapsed duration of the call in nanoseconds
- abstract def onCallTimeoutFailure(elapsedNanos: Long): Unit
Invoked for each call when the future is completed with
java.util.concurrent.TimeoutException
Invoked for each call when the future is completed with
java.util.concurrent.TimeoutException
- elapsedNanos
the elapsed duration of the call in nanoseconds
- abstract def onClose(): Unit
Invoked when the circuit breaker transitions to the close state.
- abstract def onHalfOpen(): Unit
Invoked when the circuit breaker transitions to the half-open state after reset timeout.
- abstract def onOpen(): Unit
Invoked when the circuit breaker transitions to the open state.
- abstract def stopped(): Unit
Called when the circuit breaker is removed, e.g.
Called when the circuit breaker is removed, e.g. expired due to inactivity. It is also called if the circuit breaker is re-configured, before calling CircuitBreakerTelemetryProvider#start.
Service Provider Interface (SPI) for collecting metrics from Circuit Breaker.
Implementations must include a single constructor with two arguments: Circuit Breaker id and ExtendedActorSystem. To setup your implementation, add a setting in your
application.conf
: