public enum CouchbaseNodeOrder extends java.lang.Enum<CouchbaseNodeOrder>
CouchbaseNodeOrder
helps with making sure that the streaming
connection is not always bound to the same node.
If ORDERED
is chosen, the default behavior before the 1.2 release
is used. Nodes are used in the same order as they are passed in. On the
other hand, if RANDOM
is chosen, the node lists are always
shuffled before storing/applying them.Enum Constant and Description |
---|
ORDERED
Keep the node lists as they arrive / are passed in.
|
RANDOM
Shuffle the node lists always before applying them.
|
Modifier and Type | Method and Description |
---|---|
static CouchbaseNodeOrder |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CouchbaseNodeOrder[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CouchbaseNodeOrder ORDERED
public static final CouchbaseNodeOrder RANDOM
public static CouchbaseNodeOrder[] values()
for (CouchbaseNodeOrder c : CouchbaseNodeOrder.values()) System.out.println(c);
public static CouchbaseNodeOrder 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 nullCopyright © 2006-2009 Dustin Sallings, 2009-2012 Couchbase, Inc.