Package io.netty.resolver.dns
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 Classes Modifier and Type Class Description (package private) static class
UnixResolverOptions.Builder
-
Constructor Summary
Constructors Constructor Description UnixResolverOptions(int ndots, int timeout, int attempts)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) int
attempts()
The maximum allowed number of DNS queries to send when resolving a host name.(package private) int
ndots()
The number of dots which must appear in a name before an initial absolute query is made.(package private) static UnixResolverOptions.Builder
newBuilder()
(package private) int
timeout()
The timeout of each DNS query performed by this resolver (in seconds).java.lang.String
toString()
-
-
-
Method Detail
-
newBuilder
static UnixResolverOptions.Builder 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:
toString
in classjava.lang.Object
-
-