public static enum Observe.PersistTo extends Enum<Observe.PersistTo>
Defines the possible disk persistence constraints to observe.
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 Observe.PersistTo |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Observe.PersistTo[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Observe.PersistTo MASTER
public static final Observe.PersistTo NONE
public static final Observe.PersistTo ONE
public static final Observe.PersistTo TWO
public static final Observe.PersistTo THREE
public static final Observe.PersistTo FOUR
public static Observe.PersistTo[] values()
for (Observe.PersistTo c : Observe.PersistTo.values()) System.out.println(c);
public static Observe.PersistTo valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- 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.
Copyright © 2017 Couchbase, Inc.. All rights reserved.