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>
Represents the degradation state of the system.
表示系统的降级状态。
- Since:
- JDK 25, opencode-base-cache V1.0.0
- Author:
- Leon Soo www.LeonSoo.com
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDegraded mode, using local cache only. | 降级模式,仅使用本地缓存。Normal operation, distributed cache is healthy. | 正常操作,分布式缓存健康。Recovering, attempting to restore distributed cache usage. | 恢复中,尝试恢复分布式缓存使用。 -
Method Summary
Modifier and TypeMethodDescriptionstatic GracefulDegradation.StateReturns the enum constant of this class with the specified name.static GracefulDegradation.State[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NORMAL
Normal operation, distributed cache is healthy. | 正常操作,分布式缓存健康。 -
DEGRADED
Degraded mode, using local cache only. | 降级模式,仅使用本地缓存。 -
RECOVERING
Recovering, attempting to restore distributed cache usage. | 恢复中,尝试恢复分布式缓存使用。
-
-
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
-