vertx-lang-scala-docs_2.12 3.4.2 API < Back
 

# Packages

-  package root
  Definition Classes
    root
-  package io
  Definition Classes
    root
-  package vertx
  Definition Classes
    io
-  package scala
  Definition Classes
    vertx
-  package core
  Definition Classes
    scala
-  package dns
  Definition Classes
    core
- AddressResolverOptions
- DnsClient
- MxRecord
- SrvRecord

c

io.vertx.scala.core.dns

# AddressResolverOptions 

###
Companion object AddressResolverOptions

#### class AddressResolverOptions extends AnyRef

Configuration options for Vert.x hostname resolver. The resolver uses the local hosts file and performs DNS A and AAAA queries.

Linear Supertypes
AnyRef, Any
 
Ordering

1. Alphabetic
2. By Inheritance

Inherited

1. AddressResolverOptions
2. AnyRef
3. Any

1. Hide All
2. Show All

Visibility

1. Public
2. All

### Instance Constructors

1.  new AddressResolverOptions(_asJava: core.dns.AddressResolverOptions)

### Value Members

1.  final def !=(arg0: Any): Boolean
   Definition Classes
     AnyRef → Any
2.  final def ##(): Int
   Definition Classes
     AnyRef → Any
3.  final def ==(arg0: Any): Boolean
   Definition Classes
     AnyRef → Any
4.  def addSearchDomain(value: String): AddressResolverOptions

   Set the lists of DNS search domains.

   Set the lists of DNS search domains.

   When the search domain list is null, the effective search domain list will be populated using the system DNS search domains.

5.  def addServer(value: String): AddressResolverOptions

   Set the list of DNS server addresses, an address is the IP of the dns server, followed by an optional colon and a port, e.g `8.8.8.8` or {code 192.168.0.1:40000}.

   Set the list of DNS server addresses, an address is the IP of the dns server, followed by an optional colon and a port, e.g `8.8.8.8` or {code 192.168.0.1:40000}. When the list is empty, the resolver will use the list of the system DNS server addresses from the environment, if that list cannot be retrieved it will use Google's public DNS servers `"8.8.8.8"` and `"8.8.4.4"`.

6.  final def asInstanceOf[T0]: T0
   Definition Classes
     Any
7.  def asJava: core.dns.AddressResolverOptions
8.  def clone(): AnyRef
   Attributes
     protected[java.lang]
   Definition Classes
     AnyRef
   Annotations
     @throws( ... )
9.  final def eq(arg0: AnyRef): Boolean
   Definition Classes
     AnyRef
10.  def equals(arg0: Any): Boolean
    Definition Classes
      AnyRef → Any
11.  def finalize(): Unit
    Attributes
      protected[java.lang]
    Definition Classes
      AnyRef
    Annotations
      @throws( classOf[java.lang.Throwable] )
12.  def getCacheMaxTimeToLive: Int
13.  def getCacheMinTimeToLive: Int
14.  def getCacheNegativeTimeToLive: Int
15.  final def getClass(): Class[_]
    Definition Classes
      AnyRef → Any
16.  def getHostsPath: String
17.  def getHostsValue: Buffer
18.  def getMaxQueries: Int
19.  def getNdots: Int
20.  def getQueryTimeout: Long
21.  def getRdFlag: Boolean
22.  def getSearchDomains: Buffer[String]
23.  def getServers: Buffer[String]
24.  def hashCode(): Int
    Definition Classes
      AnyRef → Any
25.  final def isInstanceOf[T0]: Boolean
    Definition Classes
      Any
26.  def isOptResourceEnabled: Boolean
27.  def isRotateServers: Boolean
28.  final def ne(arg0: AnyRef): Boolean
    Definition Classes
      AnyRef
29.  final def notify(): Unit
    Definition Classes
      AnyRef
30.  final def notifyAll(): Unit
    Definition Classes
      AnyRef
31.  def setCacheMaxTimeToLive(value: Int): AddressResolverOptions

    Set the cache maximum TTL value in seconds.

    Set the cache maximum TTL value in seconds. After successful resolution IP addresses are cached with their DNS response TTL, use this to set a maximum value to all responses TTL.

32.  def setCacheMinTimeToLive(value: Int): AddressResolverOptions

    Set the cache minimum TTL value in seconds.

    Set the cache minimum TTL value in seconds. After resolution successful IP addresses are cached with their DNS response TTL, use this to set a minimum value to all responses TTL.

33.  def setCacheNegativeTimeToLive(value: Int): AddressResolverOptions

    Set the negative cache TTL value in seconds.

    Set the negative cache TTL value in seconds. After a failed hostname resolution, DNS queries won't be retried for a period of time equals to the negative TTL. This allows to reduce the response time of negative replies and reduce the amount of messages to DNS servers.

34.  def setHostsPath(value: String): AddressResolverOptions

    Set the path of an alternate hosts configuration file to use instead of the one provided by the os.

    Set the path of an alternate hosts configuration file to use instead of the one provided by the os.

    The default value is null, so the operating system hosts config is used.

35.  def setHostsValue(value: Buffer): AddressResolverOptions

    Set an alternate hosts configuration file to use instead of the one provided by the os.

    Set an alternate hosts configuration file to use instead of the one provided by the os.

    The value should contain the hosts content literaly, for instance 127.0.0.1 localhost

    The default value is null, so the operating system hosts config is used.

36.  def setMaxQueries(value: Int): AddressResolverOptions

    Set the maximum number of queries when an hostname is resolved.

37.  def setNdots(value: Int): AddressResolverOptions

    Set the ndots value used when resolving using search domains, the default value is `-1` which determines the value from the OS on Linux or uses the value `1`.

38.  def setOptResourceEnabled(value: Boolean): AddressResolverOptions

    Set to true to enable the automatic inclusion in DNS queries of an optional record that hints the remote DNS server about how much data the resolver can read per response.

39.  def setQueryTimeout(value: Long): AddressResolverOptions

    Set the query timeout in milliseconds, i.e the amount of time after a query is considered to be failed.

40.  def setRdFlag(value: Boolean): AddressResolverOptions

    Set the DNS queries Recursion Desired flag value.

41.  def setRotateServers(value: Boolean): AddressResolverOptions

    Set to `true` to enable round-robin selection of the dns server to use.

    Set to `true` to enable round-robin selection of the dns server to use. It spreads the query load among the servers and avoids all lookup to hit the first server of the list.

42.  def setSearchDomains(value: Buffer[String]): AddressResolverOptions
43.  def setServers(value: Buffer[String]): AddressResolverOptions
44.  final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
      AnyRef
45.  def toString(): String
    Definition Classes
      AnyRef → Any
46.  final def wait(): Unit
    Definition Classes
      AnyRef
    Annotations
      @throws( ... )
47.  final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
      AnyRef
    Annotations
      @throws( ... )
48.  final def wait(arg0: Long): Unit
    Definition Classes
      AnyRef
    Annotations
      @throws( ... )

### Inherited from AnyRef

### Inherited from Any

### Ungrouped