Enum Constant and Description |
---|
FOUR
Observe disk persistence of four nodes (one master and three replicas).
|
MASTER
Observe disk persistence to the master node of the document only.
|
NONE
Do not observe any disk persistence constraint.
|
ONE
Observe disk persistence of one node (master or replica).
|
THREE
Observe disk persistence of three nodes (master or replica).
|
TWO
Observe disk persistence of two nodes (master or replica).
|
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 persistence representation for the enum.
|
static PersistTo |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PersistTo[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PersistTo MASTER
public static final PersistTo NONE
public static final PersistTo ONE
public static final PersistTo TWO
public static final PersistTo THREE
public static final PersistTo FOUR
public static PersistTo[] values()
for (PersistTo c : PersistTo.values()) System.out.println(c);
public static PersistTo 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 persistence representation for the enum.
public boolean touchesReplica()
Identifies if this enum property will touch a replica or just the master.