Enum AbstractRetryableDownloadTask.Retry
- java.lang.Object
-
- java.lang.Enum<AbstractRetryableDownloadTask.Retry>
-
- org.apache.karaf.features.internal.download.impl.AbstractRetryableDownloadTask.Retry
-
- All Implemented Interfaces:
Serializable
,Comparable<AbstractRetryableDownloadTask.Retry>
- Enclosing class:
- AbstractRetryableDownloadTask
protected static enum AbstractRetryableDownloadTask.Retry extends Enum<AbstractRetryableDownloadTask.Retry>
What kind of retry may be attempted
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DEFAULT_RETRY
Retry with high expectation of success at some pointNO_RETRY
Each retry would lead to the same resultQUICK_RETRY
It's ok to retry 2, 3 times, but no more
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AbstractRetryableDownloadTask.Retry
valueOf(String name)
Returns the enum constant of this type with the specified name.static AbstractRetryableDownloadTask.Retry[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NO_RETRY
public static final AbstractRetryableDownloadTask.Retry NO_RETRY
Each retry would lead to the same result
-
QUICK_RETRY
public static final AbstractRetryableDownloadTask.Retry QUICK_RETRY
It's ok to retry 2, 3 times, but no more
-
DEFAULT_RETRY
public static final AbstractRetryableDownloadTask.Retry DEFAULT_RETRY
Retry with high expectation of success at some point
-
-
Method Detail
-
values
public static AbstractRetryableDownloadTask.Retry[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (AbstractRetryableDownloadTask.Retry c : AbstractRetryableDownloadTask.Retry.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AbstractRetryableDownloadTask.Retry valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
-