Class UnixResolverOptions


  • final class UnixResolverOptions
    extends java.lang.Object
    Represents options defined in a file of the format etc/resolv.conf.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private int attempts  
      private int ndots  
      private int timeout  
    • 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()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • ndots

        private final int ndots
      • timeout

        private final int timeout
      • attempts

        private final int attempts
    • Constructor Detail

      • UnixResolverOptions

        UnixResolverOptions​(int ndots,
                            int timeout,
                            int attempts)
    • Method Detail

      • 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 java.lang.String toString()
        Overrides:
        toString in class java.lang.Object