vertx / io.vertx.core.dns / DnsClientOptions

DnsClientOptions

open class DnsClientOptions

Configuration options for Vert.x DNS client.

Author
Julien Viet

Constructors

<init>

DnsClientOptions()
DnsClientOptions(json: JsonObject)
DnsClientOptions(other: DnsClientOptions)

Properties

DEFAULT_HOST

static val DEFAULT_HOST: String

The default value for the host = localhost

DEFAULT_PORT

static val DEFAULT_PORT: Int

The default value for the port = 53

DEFAULT_QUERY_TIMEOUT

static val DEFAULT_QUERY_TIMEOUT: Long

The default value for the query timeout in millis = 5000

Functions

getHost

open fun getHost(): String

Get the host name to be used by this client in requests.

getPort

open fun getPort(): Int

Get the port to be used by this client in requests.

getQueryTimeout

open fun getQueryTimeout(): Long

setHost

open fun setHost(host: String): DnsClientOptions

Set the host name to be used by this client in requests.

setPort

open fun setPort(port: Int): DnsClientOptions

Set the port to be used by this client in requests.

setQueryTimeout

open fun setQueryTimeout(queryTimeout: Long): DnsClientOptions

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

toJson

open fun toJson(): JsonObject