Package com.unboundid.ldap.sdk
Enum RoundRobinDNSServerSet.AddressSelectionMode
java.lang.Object
java.lang.Enum<RoundRobinDNSServerSet.AddressSelectionMode>
com.unboundid.ldap.sdk.RoundRobinDNSServerSet.AddressSelectionMode
- All Implemented Interfaces:
Serializable,Comparable<RoundRobinDNSServerSet.AddressSelectionMode>,java.lang.constant.Constable
- Enclosing class:
RoundRobinDNSServerSet
public static enum RoundRobinDNSServerSet.AddressSelectionMode
extends Enum<RoundRobinDNSServerSet.AddressSelectionMode>
An enum that defines the modes that may be used to select the order in
which addresses should be used in attempts to establish connections.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe address selection mode that will cause addresses to be consistently attempted in the order they are retrieved from the name service.The address selection mode that will cause the order of addresses to be randomized for each attempt.The address selection mode that will cause connection attempts to be made in a round-robin order. -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the address selection mode with the specified name.Returns the enum constant of this type with the specified name.values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
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.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
forName
Retrieves the address selection mode with the specified name.- Parameters:
name- The name of the address selection mode to retrieve. It must not benull.- Returns:
- The requested address selection mode, or
nullif no such change mode is defined.
-