Enum Class RetryOutcome.Termination
- All Implemented Interfaces:
Serializable, Comparable<RetryOutcome.Termination>, Constable
- Enclosing interface:
RetryOutcome
Reason a contextual retry invocation terminated.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe wait strategy declined another attempt.The invoking thread was interrupted.The invocation threw a throwable that is not retriable.The retry policy did not permit another retry.The retry policy failed or returned an invalid result.The configured overall timeout was reached.The wait strategy failed. -
Method Summary
Modifier and TypeMethodDescriptionstatic RetryOutcome.TerminationReturns the enum constant of this class with the specified name.static RetryOutcome.Termination[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
RETRIES_EXHAUSTED
The retry policy did not permit another retry. -
NOT_RETRYABLE
The invocation threw a throwable that is not retriable. -
TIMED_OUT
The configured overall timeout was reached. -
INTERRUPTED
The invoking thread was interrupted. -
CANCELLED
The wait strategy declined another attempt. -
WAIT_FAILED
The wait strategy failed. -
RETRY_POLICY_FAILED
The retry policy failed or returned an invalid result.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-