Enum Class LoaderStatus

java.lang.Object
java.lang.Enum<LoaderStatus>
de.cuioss.http.client.LoaderStatus
All Implemented Interfaces:
Serializable, Comparable<LoaderStatus>, Constable

public enum LoaderStatus extends Enum<LoaderStatus>
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
  • Enum Constant Details

    • OK

      public static final LoaderStatus OK
      The loader is functioning properly and contains at least one key or valid content
    • ERROR

      public static final LoaderStatus ERROR
      The loader has encountered an error and couldn't load any keys or content
    • LOADING

      public static final LoaderStatus LOADING
      A loading operation is currently in progress
    • UNDEFINED

      public static final LoaderStatus UNDEFINED
      The loader's status hasn't been determined yet
  • Method Details

    • values

      public static LoaderStatus[] 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 LoaderStatus 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
    • toString

      public String toString()
      Overrides:
      toString in class Enum<LoaderStatus>