public enum CacheTopology extends java.lang.Enum<CacheTopology>
Enum Constant | Description |
---|---|
LocalOutproc |
Local is used for Local outproc cache representation.
|
Mirrored |
Mirrored is used for Mirror topology representation.
|
None |
Empty configuration of topology.
|
Partitioned |
Partitioned is used for Replicated topology representation.
|
PartitionReplica |
ParitionReplica is used for Partitioned of Replica cache representation.
|
Replicated |
Replicated is used for Replicated topology representation.
|
Modifier and Type | Method | Description |
---|---|---|
static CacheTopology |
forValue(int value) |
Retrieves the enum constant of the specified value, if exists.
|
int |
getValue() |
Order is important in enums.
|
static CacheTopology |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static CacheTopology[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CacheTopology None
public static final CacheTopology Mirrored
public static final CacheTopology Replicated
public static final CacheTopology Partitioned
public static final CacheTopology LocalOutproc
public static final CacheTopology PartitionReplica
public static CacheTopology[] values()
for (CacheTopology c : CacheTopology.values()) System.out.println(c);
public static CacheTopology 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 CacheTopology forValue(int value)
value
- Enum constant index.public int getValue()