public enum ReplicateTo extends java.lang.Enum<ReplicateTo>
Defines the possible replication constraints to observe.
Enum Constant and Description |
---|
NONE
Do not observe any replication constraint.
|
ONE
Observe replication to one replica.
|
THREE
Observe replication to three replicas.
|
TWO
Observe replication to two replicas.
|
Modifier and Type | Method and Description |
---|---|
boolean |
touchesReplica()
Identifies if this enum property will touch a replica or just the master.
|
short |
value()
Returns the actual internal replication representation for the enum.
|
static ReplicateTo |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ReplicateTo[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ReplicateTo NONE
public static final ReplicateTo ONE
public static final ReplicateTo TWO
public static final ReplicateTo THREE
public static ReplicateTo[] values()
for (ReplicateTo c : ReplicateTo.values()) System.out.println(c);
public static ReplicateTo 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 short value()
Returns the actual internal replication representation for the enum.
public boolean touchesReplica()
Identifies if this enum property will touch a replica or just the master.