Package akka.pattern.internal
Class CircuitBreakerNoopTelemetry$
- java.lang.Object
-
- akka.pattern.internal.CircuitBreakerNoopTelemetry$
-
- All Implemented Interfaces:
CircuitBreakerTelemetry
public class CircuitBreakerNoopTelemetry$ extends java.lang.Object implements CircuitBreakerTelemetry
INTERNAL API
-
-
Field Summary
Fields Modifier and Type Field Description static CircuitBreakerNoopTelemetry$
MODULE$
Static reference to the singleton instance of this Scala object.
-
Constructor Summary
Constructors Constructor Description CircuitBreakerNoopTelemetry$()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
onCallBreakerOpenFailure()
Invoked for each call when the future is completed withakka.pattern.CircuitBreakerOpenException
void
onCallFailure(long elapsedNanos)
Invoked for each call when the future is completed with exception, except forscala.concurrent.TimeoutException
andCircuitBreakerOpenException
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 withjava.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
stopped()
Called when the circuit breaker is removed, e.g.
-
-
-
Field Detail
-
MODULE$
public static final CircuitBreakerNoopTelemetry$ MODULE$
Static reference to the singleton instance of this Scala object.
-
-
Method Detail
-
onOpen
public void onOpen()
Description copied from interface:CircuitBreakerTelemetry
Invoked when the circuit breaker transitions to the open state.- Specified by:
onOpen
in interfaceCircuitBreakerTelemetry
-
onClose
public void onClose()
Description copied from interface:CircuitBreakerTelemetry
Invoked when the circuit breaker transitions to the close state.- Specified by:
onClose
in interfaceCircuitBreakerTelemetry
-
onHalfOpen
public void onHalfOpen()
Description copied from interface:CircuitBreakerTelemetry
Invoked when the circuit breaker transitions to the half-open state after reset timeout.- Specified by:
onHalfOpen
in interfaceCircuitBreakerTelemetry
-
onCallSuccess
public void onCallSuccess(long elapsedNanos)
Description copied from interface:CircuitBreakerTelemetry
Invoked for each successful call.- Specified by:
onCallSuccess
in interfaceCircuitBreakerTelemetry
- Parameters:
elapsedNanos
- the elapsed duration of the call in nanoseconds
-
onCallFailure
public void onCallFailure(long elapsedNanos)
Description copied from interface:CircuitBreakerTelemetry
Invoked for each call when the future is completed with exception, except forscala.concurrent.TimeoutException
andCircuitBreakerOpenException
that are handled by separate methods.- Specified by:
onCallFailure
in interfaceCircuitBreakerTelemetry
- Parameters:
elapsedNanos
- the elapsed duration of the call in nanoseconds
-
onCallTimeoutFailure
public void onCallTimeoutFailure(long elapsedNanos)
Description copied from interface:CircuitBreakerTelemetry
Invoked for each call when the future is completed withjava.util.concurrent.TimeoutException
- Specified by:
onCallTimeoutFailure
in interfaceCircuitBreakerTelemetry
- Parameters:
elapsedNanos
- the elapsed duration of the call in nanoseconds
-
onCallBreakerOpenFailure
public void onCallBreakerOpenFailure()
Description copied from interface:CircuitBreakerTelemetry
Invoked for each call when the future is completed withakka.pattern.CircuitBreakerOpenException
- Specified by:
onCallBreakerOpenFailure
in interfaceCircuitBreakerTelemetry
-
stopped
public void stopped()
Description copied from interface:CircuitBreakerTelemetry
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 callingCircuitBreakerTelemetryProvider.start(java.lang.String, akka.actor.ExtendedActorSystem)
.- Specified by:
stopped
in interfaceCircuitBreakerTelemetry
-
-