Enum Constant and Description |
---|
FOUR
Persist to at least four nodes including Master.
|
MASTER
Persist to the Master.
|
ONE
ONE implies MASTER.
|
THREE
Persist to at least three nodes including Master.
|
TWO
Persist to at least two nodes including Master.
|
ZERO
Don't wait for persistence on any nodes.
|
Modifier and Type | Method and Description |
---|---|
int |
getValue() |
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 ZERO
public static final PersistTo MASTER
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 int getValue()
Copyright © 2006-2009 Dustin Sallings, 2009-2013 Couchbase, Inc.