Top Description Inners Fields Constructors Methods
io.netty.resolver.dns

pack-priv final Class UnixResolverOptions

extends Object
Class Inheritance

Represents options defined in a file of the format etc/resolv.conf.

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class

Field Summary

Modifier and TypeField and Description
private final int
private final int
private final int

Constructor Summary

AccessConstructor and Description
pack-priv
UnixResolverOptions(int ndots, int timeout, int attempts)

Method Summary

Modifier and TypeMethod and Description
pack-priv int
attempts()

The maximum allowed number of DNS queries to send when resolving a host name.

pack-priv int
ndots()

The number of dots which must appear in a name before an initial absolute query is made.

pack-priv static UnixResolverOptions.Builder
pack-priv int
timeout()

The timeout of each DNS query performed by this resolver (in seconds).

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

attemptsback to summary
private final int attempts
ndotsback to summary
private final int ndots
timeoutback to summary
private final int timeout

Constructor Detail

UnixResolverOptionsback to summary
pack-priv UnixResolverOptions(int ndots, int timeout, int attempts)

Method Detail

attemptsback to summary
pack-priv int attempts()

The maximum allowed number of DNS queries to send when resolving a host name. The default value is 16.

ndotsback to summary
pack-priv int ndots()

The number of dots which must appear in a name before an initial absolute query is made. The default value is 1.

newBuilderback to summary
pack-priv static UnixResolverOptions.Builder newBuilder()
timeoutback to summary
pack-priv int timeout()

The timeout of each DNS query performed by this resolver (in seconds). The default value is 5.

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.

Annotations
@Override
io.netty.resolver.dns back to summary

pack-priv final Class UnixResolverOptions.Builder

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
private int
private int
private int

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
pack-priv UnixResolverOptions
pack-priv void
setAttempts(int attempts)

pack-priv void
setNdots(int ndots)

pack-priv void
setTimeout(int timeout)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

attemptsback to summary
private int attempts
ndotsback to summary
private int ndots
timeoutback to summary
private int timeout

Constructor Detail

Builderback to summary
private Builder()

Method Detail

buildback to summary
pack-priv UnixResolverOptions build()
setAttemptsback to summary
pack-priv void setAttempts(int attempts)
setNdotsback to summary
pack-priv void setNdots(int ndots)
setTimeoutback to summary
pack-priv void setTimeout(int timeout)