Enum Class RecoveryConfig.RecoveryAction

java.lang.Object
java.lang.Enum<RecoveryConfig.RecoveryAction>
co.mindus.ip2location.RecoveryConfig.RecoveryAction
All Implemented Interfaces:
Serializable, Comparable<RecoveryConfig.RecoveryAction>, Constable
Enclosing class:
RecoveryConfig

public static enum RecoveryConfig.RecoveryAction extends Enum<RecoveryConfig.RecoveryAction>
Actions to take when recovery conditions are met.
Author:
Christopher Mindus
  • Enum Constant Details

    • AUTOMATIC

      public static final RecoveryConfig.RecoveryAction 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

      public static final RecoveryConfig.RecoveryAction 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

      public static final RecoveryConfig.RecoveryAction 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

      public static RecoveryConfig.RecoveryAction[] 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

      public static RecoveryConfig.RecoveryAction valueOf(String name)
      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 name
      NullPointerException - if the argument is null