Enum DistributedCache.NodeStatus
- java.lang.Object
-
- java.lang.Enum<DistributedCache.NodeStatus>
-
- io.github.dhruv1110.jcachex.distributed.DistributedCache.NodeStatus
-
- All Implemented Interfaces:
Serializable
,Comparable<DistributedCache.NodeStatus>
- Enclosing interface:
- DistributedCache<K,V>
public static enum DistributedCache.NodeStatus extends Enum<DistributedCache.NodeStatus>
Node health status.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DEGRADED
FAILED
HEALTHY
UNREACHABLE
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DistributedCache.NodeStatus
valueOf(String name)
Returns the enum constant of this type with the specified name.static DistributedCache.NodeStatus[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
HEALTHY
public static final DistributedCache.NodeStatus HEALTHY
-
DEGRADED
public static final DistributedCache.NodeStatus DEGRADED
-
UNREACHABLE
public static final DistributedCache.NodeStatus UNREACHABLE
-
FAILED
public static final DistributedCache.NodeStatus FAILED
-
-
Method Detail
-
values
public static DistributedCache.NodeStatus[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (DistributedCache.NodeStatus c : DistributedCache.NodeStatus.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DistributedCache.NodeStatus valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
-