|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<FailoverAlgorithm>
com.streamhub.client.FailoverAlgorithm
public enum FailoverAlgorithm
The failover algorithm to use when choosing a server to failover to.
FailoverParameters}| Enum Constant Summary | |
|---|---|
ORDERED
The servers will be tried in order from top to bottom. |
|
PRIORITY
The first server in the failover list will always be tried upon each connection lost. |
|
RANDOM
A failover server wil be chosen at random. |
|
| Method Summary | |
|---|---|
String |
toString()
|
static FailoverAlgorithm |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static FailoverAlgorithm[] |
values()
Returns an array containing the constants of this enum type, in the order they're declared. |
| Methods inherited from class java.lang.Enum |
|---|
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final FailoverAlgorithm ORDERED
public static final FailoverAlgorithm PRIORITY
public static final FailoverAlgorithm RANDOM
| Method Detail |
|---|
public static final FailoverAlgorithm[] values()
for(FailoverAlgorithm c : FailoverAlgorithm.values())
System.out.println(c);
public static FailoverAlgorithm valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified namepublic String toString()
toString in class Enum<FailoverAlgorithm>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||