- All Implemented Interfaces:
Serializable,Comparable<LoaderStatus>,Constable
Enum representing the status of a
HttpHandler loader.
A loader status is:
- OK: if it can load at least one key or has valid content
- ERROR: if it failed to load any keys due to configuration or runtime issues
- LOADING: if a loading operation is currently in progress
- UNDEFINED: if the status hasn't been determined yet
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe loader has encountered an error and couldn't load any keys or contentA loading operation is currently in progressThe loader is functioning properly and contains at least one key or valid contentThe loader's status hasn't been determined yet -
Method Summary
Modifier and TypeMethodDescriptiontoString()static LoaderStatusReturns the enum constant of this class with the specified name.static LoaderStatus[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
OK
The loader is functioning properly and contains at least one key or valid content -
ERROR
The loader has encountered an error and couldn't load any keys or content -
LOADING
A loading operation is currently in progress -
UNDEFINED
The loader's status hasn't been determined yet
-
-
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
-
toString
- Overrides:
toStringin classEnum<LoaderStatus>
-