Class DnsClientOptions
java.lang.Object
io.vertx.core.dns.DnsClientOptions
Configuration options for Vert.x DNS client.
- Author:
- Julien Viet
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe default value for the host =null(configured byVertxOptions.getAddressResolverOptions())static final ByteBufFormatThe default ByteBufFormat is SIMPLEstatic final booleanThe default log enabled = falsestatic final intThe default value for the port =-1(configured byVertxOptions.getAddressResolverOptions())static final longThe default value for the query timeout in millis =5000static final booleanThe default value for the recursion desired flag (RD) =true -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetHost()Get the host name to be used by this client in requests.booleanintgetPort()Get the port to be used by this client in requests.longbooleanReturn whether or not recursion is desiredsetActivityLogFormat(ByteBufFormat activityLogFormat) Set the value of Netty's logging handler's data format: Netty's pipeline is configured for logging on Netty's logger.Set the host name to be used by this client in requests.setLogActivity(boolean logActivity) Set to true to enable network activity logging: Netty's pipeline is configured for logging on Netty's logger.setPort(int port) Set the port to be used by this client in requests.setQueryTimeout(long queryTimeout) Set the query timeout in milliseconds, i.e the amount of time after a query is considered to be failed.setRecursionDesired(boolean recursionDesired) Set whether or not recursion is desiredtoJson()
-
Field Details
-
DEFAULT_PORT
public static final int DEFAULT_PORTThe default value for the port =-1(configured byVertxOptions.getAddressResolverOptions())- See Also:
-
DEFAULT_HOST
The default value for the host =null(configured byVertxOptions.getAddressResolverOptions()) -
DEFAULT_QUERY_TIMEOUT
public static final long DEFAULT_QUERY_TIMEOUTThe default value for the query timeout in millis =5000- See Also:
-
DEFAULT_LOG_ENABLED
public static final boolean DEFAULT_LOG_ENABLEDThe default log enabled = false- See Also:
-
DEFAULT_LOG_ACTIVITY_FORMAT
The default ByteBufFormat is SIMPLE -
DEFAULT_RECURSION_DESIRED
public static final boolean DEFAULT_RECURSION_DESIREDThe default value for the recursion desired flag (RD) =true- See Also:
-
-
Constructor Details
-
DnsClientOptions
public DnsClientOptions() -
DnsClientOptions
-
DnsClientOptions
-
-
Method Details
-
getPort
public int getPort()Get the port to be used by this client in requests.- Returns:
- the port
-
setPort
Set the port to be used by this client in requests.- Returns:
- a reference to this, so the API can be used fluently
-
getHost
Get the host name to be used by this client in requests.- Returns:
- the host name
-
setHost
Set the host name to be used by this client in requests.- Returns:
- a reference to this, so the API can be used fluently
-
getQueryTimeout
public long getQueryTimeout()- Returns:
- the query timeout in milliseconds
-
setQueryTimeout
Set the query timeout in milliseconds, i.e the amount of time after a query is considered to be failed.- Parameters:
queryTimeout- the query timeout in milliseconds- Returns:
- a reference to this, so the API can be used fluently
-
getLogActivity
public boolean getLogActivity()- Returns:
truewhen network activity logging is enabled
-
getActivityLogFormat
- Returns:
ByteBufFormatget Netty's log format
-
setLogActivity
Set to true to enable network activity logging: Netty's pipeline is configured for logging on Netty's logger.- Parameters:
logActivity- true for logging the network activity- Returns:
- a reference to this, so the API can be used fluently
-
setActivityLogFormat
Set the value of Netty's logging handler's data format: Netty's pipeline is configured for logging on Netty's logger.- Parameters:
activityLogFormat- format of Netty's logging data- Returns:
- a reference to this, so the API can be used fluently
-
isRecursionDesired
public boolean isRecursionDesired()Return whether or not recursion is desired- Returns:
truewhen recursion is desired
-
setRecursionDesired
Set whether or not recursion is desired- Parameters:
recursionDesired- the new value- Returns:
- a reference to this, so the API can be used fluently
-
toJson
-