1 | package net.spy.memcached; |
2 | |
3 | /** |
4 | * Failure modes for node failures. |
5 | */ |
6 | public enum FailureMode { |
7 | |
8 | /** |
9 | * Move on to functional nodes when nodes fail. |
10 | * |
11 | * <p> |
12 | * In this failure mode, the failure of a node will cause its current |
13 | * queue and future requests to move to the next logical node in the |
14 | * cluster for a given key. |
15 | * </p> |
16 | */ |
17 | Redistribute, |
18 | /** |
19 | * Continue to retry a failing node until it comes back up. |
20 | * |
21 | * <p> |
22 | * This failure mode is appropriate when you have a rare short downtime |
23 | * of a memcached node that will be back quickly, and your app is written |
24 | * to not wait very long for async command completion. |
25 | * </p> |
26 | */ |
27 | Retry, |
28 | |
29 | /** |
30 | * Automatically cancel all operations heading towards a downed node. |
31 | */ |
32 | Cancel |
33 | |
34 | } |