Enum Class ClaimResult.StopReason
- All Implemented Interfaces:
Serializable, Comparable<ClaimResult.StopReason>, Constable
- Enclosing class:
ClaimResult
Why a scheduled claim stopped.
- Since:
- 0.12.0
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe caller cancelled the run.The name was claimed.A failure ended the run: one no retry can fix (a refused token, an account with nothing to rename), the service asking the run to slow down, or the runtime closing under it.The window ran out with every attempt refused. -
Method Summary
Modifier and TypeMethodDescriptionstatic ClaimResult.StopReasonReturns the enum constant of this class with the specified name.static ClaimResult.StopReason[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CLAIMED
-
WINDOW_ELAPSED
The window ran out with every attempt refused.- Since:
- 0.12.0
-
TERMINAL_FAILURE
A failure ended the run: one no retry can fix (a refused token, an account with nothing to rename), the service asking the run to slow down, or the runtime closing under it.ClaimResult.failure()says which; a rate limit carries the wait it asked for, when it said.- Since:
- 0.12.0
-
CANCELLED
-
-
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
-