|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<FailureMode> net.spy.memcached.FailureMode
public enum FailureMode
Failure modes for node failures.
Enum Constant Summary | |
---|---|
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. |
Method Summary | |
---|---|
static FailureMode |
valueOf(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. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
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
Method Detail |
---|
public static FailureMode[] values()
for (FailureMode c : FailureMode.values()) System.out.println(c);
public static FailureMode valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |