Enum Class GracefulDegradation.State

java.lang.Object
java.lang.Enum<GracefulDegradation.State>
cloud.opencode.base.cache.resilience.GracefulDegradation.State
All Implemented Interfaces:
Serializable, Comparable<GracefulDegradation.State>, Constable
Enclosing class:
GracefulDegradation<K,V>

public static enum GracefulDegradation.State extends Enum<GracefulDegradation.State>
Represents the degradation state of the system. 表示系统的降级状态。
Since:
JDK 25, opencode-base-cache V1.0.0
Author:
Leon Soo www.LeonSoo.com
  • Enum Constant Details

    • NORMAL

      public static final GracefulDegradation.State NORMAL
      Normal operation, distributed cache is healthy. | 正常操作,分布式缓存健康。
    • DEGRADED

      public static final GracefulDegradation.State DEGRADED
      Degraded mode, using local cache only. | 降级模式,仅使用本地缓存。
    • RECOVERING

      public static final GracefulDegradation.State RECOVERING
      Recovering, attempting to restore distributed cache usage. | 恢复中,尝试恢复分布式缓存使用。
  • Method Details

    • values

      public static GracefulDegradation.State[] 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 GracefulDegradation.State 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