Class UnixResolverOptions

java.lang.Object
io.netty.resolver.dns.UnixResolverOptions

final class UnixResolverOptions extends 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 final class 
     
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final int
     
    private final int
     
    private final int
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    UnixResolverOptions(int ndots, int timeout, int attempts)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    (package private) int
    The maximum allowed number of DNS queries to send when resolving a host name.
    (package private) int
    The number of dots which must appear in a name before an initial absolute query is made.
    (package private) static UnixResolverOptions.Builder
     
    (package private) int
    The timeout of each DNS query performed by this resolver (in seconds).
     

    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

      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 is 1.
    • timeout

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

      int attempts()
      The maximum allowed number of DNS queries to send when resolving a host name. The default value is 16.
    • toString

      public String toString()
      Overrides:
      toString in class Object