public static enum Param.ReplicationMode extends java.lang.Enum<Param.ReplicationMode> implements Param<Param.ReplicationMode>
Param.ExecutionMode, Param.LockingMode, Param.PersistenceMode, Param.ReplicationMode, Param.StatisticsMode| Enum Constant and Description |
|---|
ASYNC
Invoking node does not know when the owners are updated nor if the command fails.
|
SYNC
Command is completed when all owners are updated.
|
| Modifier and Type | Field and Description |
|---|---|
static Param.ReplicationMode[] |
CACHED_VALUES |
static int |
ID |
| Modifier and Type | Method and Description |
|---|---|
static Param.ReplicationMode |
defaultValue() |
Param.ReplicationMode |
get()
Parameter's value.
|
int |
id()
A parameter's identifier.
|
static Param.ReplicationMode |
valueOf(int ordinal) |
static Param.ReplicationMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Param.ReplicationMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Param.ReplicationMode SYNC
public static final Param.ReplicationMode ASYNC
public static final int ID
public static final Param.ReplicationMode[] CACHED_VALUES
public static Param.ReplicationMode[] values()
for (Param.ReplicationMode c : Param.ReplicationMode.values()) System.out.println(c);
public static Param.ReplicationMode 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 int id()
ParamA numeric id makes it flexible enough to be stored in collections that take up low resources, such as arrays.
id in interface Param<Param.ReplicationMode>public Param.ReplicationMode get()
Paramget in interface Param<Param.ReplicationMode>public static Param.ReplicationMode defaultValue()
public static Param.ReplicationMode valueOf(int ordinal)