public enum ConnectionMode extends Enum<ConnectionMode>
MultiConnectionConfig
to define how it will connect to the servers.Enum Constant and Description |
---|
SIMULTANEOUS_CONNECT_MULTIPLE_ACTIVE
On startup, attempt to connect to all servers, all that connect will be considered active.
|
SIMULTANEOUS_CONNECT_SINGLE_ACTIVE
On startup, attempt to connect to all servers, first one to connect becomes 'current' and all others remain warm.
|
SIMULTANEOUS_CONNECT_SINGLE_ACTIVE_RETURN_TO_PREFERRED
On startup, attempt to connect to all servers, first one to connect becomes 'current' and all others remain warm.
|
SINGLE_CONNECT_RETURN_TO_PREFERRED
Only one server will be connected at a time, and will be considered 'current'
If it fails, the next will be tried.
|
SINGLE_CONNECTION_ROUND_ROBIN
Only one server will be connected at a time, and will be considered 'current'
If it fails, the next will be tried.
|
Modifier and Type | Method and Description |
---|---|
static ConnectionMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ConnectionMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ConnectionMode SINGLE_CONNECTION_ROUND_ROBIN
public static final ConnectionMode SINGLE_CONNECT_RETURN_TO_PREFERRED
public static final ConnectionMode SIMULTANEOUS_CONNECT_SINGLE_ACTIVE
public static final ConnectionMode SIMULTANEOUS_CONNECT_SINGLE_ACTIVE_RETURN_TO_PREFERRED
public static final ConnectionMode SIMULTANEOUS_CONNECT_MULTIPLE_ACTIVE
public static ConnectionMode[] values()
for (ConnectionMode c : ConnectionMode.values()) System.out.println(c);
public static ConnectionMode 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