public static enum Observe.ObservePersistTo extends Enum<Observe.ObservePersistTo>
Enum Constant and Description |
---|
ACTIVE
Observe disk persistence to the active node of the document only.
|
FOUR
Observe disk persistence of four nodes (one active and three replicas).
|
NONE
Do not observe any disk persistence constraint.
|
ONE
Observe disk persistence of one node (active or replica).
|
THREE
Observe disk persistence of three nodes (active or replica).
|
TWO
Observe disk persistence of two nodes (active or replica).
|
Modifier and Type | Method and Description |
---|---|
boolean |
touchesReplica()
Identifies if this enum property will touch a replica or just the active.
|
short |
value()
Returns the actual internal persistence representation for the enum.
|
static Observe.ObservePersistTo |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Observe.ObservePersistTo[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Observe.ObservePersistTo ACTIVE
public static final Observe.ObservePersistTo NONE
public static final Observe.ObservePersistTo ONE
public static final Observe.ObservePersistTo TWO
public static final Observe.ObservePersistTo THREE
public static final Observe.ObservePersistTo FOUR
public static Observe.ObservePersistTo[] values()
for (Observe.ObservePersistTo c : Observe.ObservePersistTo.values()) System.out.println(c);
public static Observe.ObservePersistTo 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()
public boolean touchesReplica()
Copyright © 2020 Couchbase, Inc.. All rights reserved.