public static enum AbstractConnectionFactory.AddressShuffleMode extends Enum<AbstractConnectionFactory.AddressShuffleMode>
Enum Constant and Description |
---|
INORDER
Shuffle the addresses after opening a connection, moving the first address to the end.
|
NONE
Do not shuffle the addresses before or after opening a connection; attempt
connections in a fixed order.
|
RANDOM
Randomly shuffle the addresses before opening a connection; attempt connections
in the new order.
|
Modifier and Type | Method and Description |
---|---|
static AbstractConnectionFactory.AddressShuffleMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AbstractConnectionFactory.AddressShuffleMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AbstractConnectionFactory.AddressShuffleMode NONE
public static final AbstractConnectionFactory.AddressShuffleMode RANDOM
public static final AbstractConnectionFactory.AddressShuffleMode INORDER
public static AbstractConnectionFactory.AddressShuffleMode[] values()
for (AbstractConnectionFactory.AddressShuffleMode c : AbstractConnectionFactory.AddressShuffleMode.values()) System.out.println(c);
public static AbstractConnectionFactory.AddressShuffleMode valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null