public enum ReplicateTo extends java.lang.Enum<ReplicateTo>
Enum Constant and Description |
---|
ONE
Replicate to at least one node.
|
THREE
Replicate to at least three nodes.
|
TWO
Replicate to at least two nodes.
|
ZERO
Replicate to at least zero nodes.
|
Modifier and Type | Method and Description |
---|---|
int |
getValue() |
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 ZERO
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 int getValue()
Copyright © 2006-2009 Dustin Sallings, 2009-2013 Couchbase, Inc.