Serializable
, Comparable<ServerSelectionAlgorithm>
public enum ServerSelectionAlgorithm extends Enum<ServerSelectionAlgorithm>
Enum Constant | Description |
---|---|
FAILOVER |
Fail-over selection algorithm.
|
ROUND_ROBIN |
Round-robin selection algorithm.
|
Modifier and Type | Method | Description |
---|---|---|
static ServerSelectionAlgorithm |
valueOf(String name) |
Returns the enum constant of this type with the specified name.
|
static ServerSelectionAlgorithm[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ServerSelectionAlgorithm FAILOVER
public static final ServerSelectionAlgorithm ROUND_ROBIN
public static ServerSelectionAlgorithm[] values()
for (ServerSelectionAlgorithm c : ServerSelectionAlgorithm.values()) System.out.println(c);
public static ServerSelectionAlgorithm 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 © 2018 Connect2id. All rights reserved.