public enum CacheStatus extends java.lang.Enum<CacheStatus>
Enum Constant | Description |
---|---|
Running |
When cache is running, then CacheStatus has this value.
|
Stopped |
When cache is stopped, then CacheStatus has this value.
|
UnRegistered |
When cache is unregistered, then CacheStatus has this value.
|
Modifier and Type | Method | Description |
---|---|---|
static CacheStatus |
forValue(int value) |
Retrieves the enum constant of the specified value, if exists.
|
int |
getValue() |
Order is important in enums.
|
static CacheStatus |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static CacheStatus[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CacheStatus UnRegistered
public static final CacheStatus Stopped
public static final CacheStatus Running
public static CacheStatus[] values()
for (CacheStatus c : CacheStatus.values()) System.out.println(c);
public static CacheStatus valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static CacheStatus forValue(int value)
value
- Enum constant index.public int getValue()