public static enum ConnectionHandler.ConnectionStrategy extends Enum<ConnectionHandler.ConnectionStrategy>
Enum Constant and Description |
---|
ACTIVE_PASSIVE
active-passive strategy.
|
DEFAULT
default strategy.
|
RANDOM
random strategy.
|
ROUND_ROBIN
round robin strategy.
|
Modifier and Type | Method and Description |
---|---|
static ConnectionHandler.ConnectionStrategy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ConnectionHandler.ConnectionStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ConnectionHandler.ConnectionStrategy DEFAULT
public static final ConnectionHandler.ConnectionStrategy ACTIVE_PASSIVE
public static final ConnectionHandler.ConnectionStrategy ROUND_ROBIN
public static final ConnectionHandler.ConnectionStrategy RANDOM
public static ConnectionHandler.ConnectionStrategy[] values()
for (ConnectionHandler.ConnectionStrategy c : ConnectionHandler.ConnectionStrategy.values()) System.out.println(c);
public static ConnectionHandler.ConnectionStrategy 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 nullCopyright © 2016. All rights reserved.