UnixResolverOptions Class — netty Architecture
Architecture documentation for the UnixResolverOptions class in UnixResolverOptions.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 20b31c7b_afc8_37a3_b31c_520e3439979f["UnixResolverOptions"] db16ed5b_0cc9_7072_53c4_6cd93501d639["UnixResolverOptions.java"] 20b31c7b_afc8_37a3_b31c_520e3439979f -->|defined in| db16ed5b_0cc9_7072_53c4_6cd93501d639 27c42e66_5d5a_de5f_8f72_98ff90285e9c["UnixResolverOptions()"] 20b31c7b_afc8_37a3_b31c_520e3439979f -->|method| 27c42e66_5d5a_de5f_8f72_98ff90285e9c 89c700a7_2c27_dc86_d0e1_053fb432cd42["newBuilder()"] 20b31c7b_afc8_37a3_b31c_520e3439979f -->|method| 89c700a7_2c27_dc86_d0e1_053fb432cd42 e8dcf7cb_8211_f443_10b6_7519bd005be1["ndots()"] 20b31c7b_afc8_37a3_b31c_520e3439979f -->|method| e8dcf7cb_8211_f443_10b6_7519bd005be1 73c0b2a1_dae0_b38c_1507_e1f7d452b280["timeout()"] 20b31c7b_afc8_37a3_b31c_520e3439979f -->|method| 73c0b2a1_dae0_b38c_1507_e1f7d452b280 a46168b0_32b0_0121_e842_96fee54ff1ea["attempts()"] 20b31c7b_afc8_37a3_b31c_520e3439979f -->|method| a46168b0_32b0_0121_e842_96fee54ff1ea cb3d2bc2_3e47_7ab4_14ee_11bd3eecaa11["String()"] 20b31c7b_afc8_37a3_b31c_520e3439979f -->|method| cb3d2bc2_3e47_7ab4_14ee_11bd3eecaa11
Relationship Graph
Source Code
resolver-dns/src/main/java/io/netty/resolver/dns/UnixResolverOptions.java lines 21–95
final class UnixResolverOptions {
private final int ndots;
private final int timeout;
private final int attempts;
UnixResolverOptions(int ndots, int timeout, int attempts) {
this.ndots = ndots;
this.timeout = timeout;
this.attempts = attempts;
}
static UnixResolverOptions.Builder newBuilder() {
return new UnixResolverOptions.Builder();
}
/**
* The number of dots which must appear in a name before an initial absolute query is made.
* The default value is {@code 1}.
*/
int ndots() {
return ndots;
}
/**
* The timeout of each DNS query performed by this resolver (in seconds).
* The default value is {@code 5}.
*/
int timeout() {
return timeout;
}
/**
* The maximum allowed number of DNS queries to send when resolving a host name.
* The default value is {@code 16}.
*/
int attempts() {
return attempts;
}
@Override
public String toString() {
return getClass().getSimpleName() +
"{ndots=" + ndots +
", timeout=" + timeout +
", attempts=" + attempts +
'}';
}
static final class Builder {
private int ndots = 1;
private int timeout = 5;
private int attempts = 16;
private Builder() {
}
void setNdots(int ndots) {
this.ndots = ndots;
}
void setTimeout(int timeout) {
this.timeout = timeout;
}
void setAttempts(int attempts) {
this.attempts = attempts;
}
UnixResolverOptions build() {
return new UnixResolverOptions(ndots, timeout, attempts);
}
}
}
Source
Frequently Asked Questions
What is the UnixResolverOptions class?
UnixResolverOptions is a class in the netty codebase, defined in resolver-dns/src/main/java/io/netty/resolver/dns/UnixResolverOptions.java.
Where is UnixResolverOptions defined?
UnixResolverOptions is defined in resolver-dns/src/main/java/io/netty/resolver/dns/UnixResolverOptions.java at line 21.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free