public enum FailureMode extends java.lang.Enum<FailureMode>
| Enum Constant and Description |
|---|
Cancel
Automatically cancel all operations heading towards a downed node.
|
Redistribute
Move on to functional nodes when nodes fail.
|
Retry
Continue to retry a failing node until it comes back up.
|
| Modifier and Type | Method and Description |
|---|---|
static FailureMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static FailureMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FailureMode Redistribute
In this failure mode, the failure of a node will cause its current queue and future requests to move to the next logical node in the cluster for a given key.
public static final FailureMode Retry
This failure mode is appropriate when you have a rare short downtime of a memcached node that will be back quickly, and your app is written to not wait very long for async command completion.
public static final FailureMode Cancel
public static FailureMode[] values()
for (FailureMode c : FailureMode.values()) System.out.println(c);
public static FailureMode 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-2013 Couchbase, Inc.