Class UnixResolverOptions
java.lang.Object
io.netty.resolver.dns.UnixResolverOptions
final class UnixResolverOptions
extends java.lang.Object
Represents options defined in a file of the format etc/resolv.conf.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static final class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) intattempts()The maximum allowed number of DNS queries to send when resolving a host name.(package private) intndots()The number of dots which must appear in a name before an initial absolute query is made.(package private) static UnixResolverOptions.Builder(package private) inttimeout()The timeout of each DNS query performed by this resolver (in seconds).java.lang.StringtoString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Field Details
-
ndots
private final int ndots -
timeout
private final int timeout -
attempts
private final int attempts
-
-
Constructor Details
-
UnixResolverOptions
UnixResolverOptions(int ndots, int timeout, int attempts)
-
-
Method Details
-
newBuilder
-
ndots
int ndots()The number of dots which must appear in a name before an initial absolute query is made. The default value is1. -
timeout
int timeout()The timeout of each DNS query performed by this resolver (in seconds). The default value is5. -
attempts
int attempts()The maximum allowed number of DNS queries to send when resolving a host name. The default value is16. -
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-