Package org.apache.pekko.pattern
Class CircuitBreakerOpenException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apache.pekko.PekkoException
org.apache.pekko.pattern.CircuitBreakerOpenException
- All Implemented Interfaces:
Serializable
,scala.util.control.NoStackTrace
public class CircuitBreakerOpenException
extends PekkoException
implements scala.util.control.NoStackTrace
Exception thrown when Circuit Breaker is open.
param: remainingDuration Stores remaining time before attempting a reset. Zero duration means the breaker is currently in half-open state. param: message Defaults to "Circuit Breaker is open; calls are failing fast"
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCircuitBreakerOpenException
(scala.concurrent.duration.FiniteDuration remainingDuration, String message) -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface scala.util.control.NoStackTrace
fillInStackTrace
-
Constructor Details
-
CircuitBreakerOpenException
public CircuitBreakerOpenException(scala.concurrent.duration.FiniteDuration remainingDuration, String message)
-
-
Method Details
-
$lessinit$greater$default$2
-
remainingDuration
public scala.concurrent.duration.FiniteDuration remainingDuration()
-