Enum Class RecoveryConfig.RecoveryAction
- All Implemented Interfaces:
Serializable, Comparable<RecoveryConfig.RecoveryAction>, Constable
- Enclosing class:
RecoveryConfig
Actions to take when recovery conditions are met.
- Author:
- Christopher Mindus
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E>Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAutomatically attempt recovery without user intervention.Disable the service until manual intervention.Fire the recovery recommendation event but don't auto-recover.Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static RecoveryConfig.RecoveryAction[]values()Returns an array containing the constants of this enum class, in the order they are declared.
Enum Constant Details
AUTOMATIC
Automatically attempt recovery without user intervention.The service will clear the database directory and re-download fresh databases. This is suitable for production servers where unattended operation is required.
NOTIFY_ONLY
Fire the recovery recommendation event but don't auto-recover.This allows the application or user to decide whether to proceed with recovery. Suitable for interactive applications where user confirmation is desired.
DISABLE_SERVICE
Disable the service until manual intervention.The service will stop accepting lookups and require manual reconfiguration to resume. Suitable for environments where failed geolocation should halt dependent operations.
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