Enum Class RetryValue
- All Implemented Interfaces:
Serializable,Comparable<RetryValue>,Constable
Enum for retry values.
Used in
AbfsBackoffMetrics to store metrics based on the retry count.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic RetryValuegetRetryValue(int retryCount) Gets the RetryValue enum based on the retry count.getValue()Gets the string representation of the retry value.static RetryValueReturns the enum constant of this class with the specified name.static RetryValue[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ONE
-
TWO
-
THREE
-
FOUR
-
FIVE_FIFTEEN
-
FIFTEEN_TWENTY_FIVE
-
TWENTY_FIVE_AND_ABOVE
-
-
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
-
getValue
Gets the string representation of the retry value.- Returns:
- the string representation of the retry value
-
getRetryValue
Gets the RetryValue enum based on the retry count.- Parameters:
retryCount- the retry count- Returns:
- the corresponding RetryValue enum
-