Class RetryRejectedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.github.teceli.resiliencia.core.api.ResilientException
io.github.teceli.resiliencia.patterns.retry.RetryRejectedException
- All Implemented Interfaces:
Serializable
Thrown by the Retry pattern when
shouldRetry declines to retry a failure before the
attempt budget is exhausted. Distinct from RetryExhaustedException, which means the
attempt budget itself ran out. The rejected failure is available via Throwable.getCause().- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintTotal number of attempts made beforeshouldRetrydeclined to retry, including the first call.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
RetryRejectedException
-
-
Method Details
-
attemptCount
public int attemptCount()Total number of attempts made beforeshouldRetrydeclined to retry, including the first call.
-