Package org.minidns.iterative
Enum ReliableDnsClient.Mode
- All Implemented Interfaces:
Serializable
,Comparable<ReliableDnsClient.Mode>
- Enclosing class:
ReliableDnsClient
-
Enum Constant Summary
Enum ConstantDescriptionOnly use iterative resolving.Only try the recursive servers.Try the recursive servers first and fallback to iterative resolving if it fails. -
Method Summary
Modifier and TypeMethodDescriptionstatic ReliableDnsClient.Mode
Returns the enum constant of this type with the specified name.static ReliableDnsClient.Mode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
recursiveWithIterativeFallback
Try the recursive servers first and fallback to iterative resolving if it fails. This is the default mode. -
recursiveOnly
Only try the recursive servers. This makesReliableDnsClient
behave like aDnsClient
. -
iterativeOnly
Only use iterative resolving. This makesReliableDnsClient
behave like aIterativeDnsClient
.
-
-
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
-