public static enum RoundRobinDNSServerSet.AddressSelectionMode extends java.lang.Enum<RoundRobinDNSServerSet.AddressSelectionMode>
Enum Constant and Description |
---|
FAILOVER
The address selection mode that will cause addresses to be consistently
attempted in the order they are retrieved from the name service.
|
RANDOM
The address selection mode that will cause the order of addresses to be
randomized for each attempt.
|
ROUND_ROBIN
The address selection mode that will cause connection attempts to be made
in a round-robin order.
|
Modifier and Type | Method and Description |
---|---|
static RoundRobinDNSServerSet.AddressSelectionMode |
forName(java.lang.String name)
Retrieves the address selection mode with the specified name.
|
static RoundRobinDNSServerSet.AddressSelectionMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static RoundRobinDNSServerSet.AddressSelectionMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RoundRobinDNSServerSet.AddressSelectionMode FAILOVER
public static final RoundRobinDNSServerSet.AddressSelectionMode RANDOM
public static final RoundRobinDNSServerSet.AddressSelectionMode ROUND_ROBIN
public static RoundRobinDNSServerSet.AddressSelectionMode[] values()
for (RoundRobinDNSServerSet.AddressSelectionMode c : RoundRobinDNSServerSet.AddressSelectionMode.values()) System.out.println(c);
public static RoundRobinDNSServerSet.AddressSelectionMode valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null@Nullable public static RoundRobinDNSServerSet.AddressSelectionMode forName(@NotNull java.lang.String name)
name
- The name of the address selection mode to retrieve. It
must not be null
.null
if no such
change mode is defined.