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) |
retreives the enum constant of the specified value, if exists.
|
int |
getValue() |
Order is important in enums.By using getValue() method, each enum constant index can be found, just like array index.
|
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 indexpublic int getValue()