- All Implemented Interfaces:
Serializable
,Comparable<DnsAddressLookup>
,Constable
DNS address lookup strategy.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionOnly IPv4 addresses will be used.Both IPv4 and IPv6 addresses will be used, but if there are any IPv4, they take precedence.Only IPv6 addresses will be used.Both IPv4 and IPv6 addresses will be used, but if there are any IPv6, they take precedence. -
Method Summary
Modifier and TypeMethodDescriptionstatic DnsAddressLookup
Default address lookup for this VM.filter
(InetAddress[] addresses) Process obtainedInetAddress
array according to the selected lookup strategy.static DnsAddressLookup
Returns the enum constant of this class with the specified name.static DnsAddressLookup[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
IPV4
Only IPv4 addresses will be used. -
IPV6
Only IPv6 addresses will be used. -
IPV4_PREFERRED
Both IPv4 and IPv6 addresses will be used, but if there are any IPv4, they take precedence. -
IPV6_PREFERRED
Both IPv4 and IPv6 addresses will be used, but if there are any IPv6, they take precedence.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
defaultLookup
Default address lookup for this VM.- Returns:
- default lookup
-
filter
Process obtainedInetAddress
array according to the selected lookup strategy.- Parameters:
addresses
- addresses to be processed- Returns:
- processed array
-