setOption() — netty Function Reference
Architecture documentation for the setOption() function in IoUringSocketChannelConfig.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD afefb505_dde4_63e5_081b_6c4d1b3c0cb7["setOption()"] 484d4b16_5cd0_ceda_ec98_1e750f432535["IoUringSocketChannelConfig"] afefb505_dde4_63e5_081b_6c4d1b3c0cb7 -->|defined in| 484d4b16_5cd0_ceda_ec98_1e750f432535 style afefb505_dde4_63e5_081b_6c4d1b3c0cb7 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
transport-classes-io_uring/src/main/java/io/netty/channel/uring/IoUringSocketChannelConfig.java lines 119–164
@Override
public <T> boolean setOption(ChannelOption<T> option, T value) {
validate(option, value);
if (option == SO_RCVBUF) {
setReceiveBufferSize((Integer) value);
} else if (option == SO_SNDBUF) {
setSendBufferSize((Integer) value);
} else if (option == TCP_NODELAY) {
setTcpNoDelay((Boolean) value);
} else if (option == SO_KEEPALIVE) {
setKeepAlive((Boolean) value);
} else if (option == SO_REUSEADDR) {
setReuseAddress((Boolean) value);
} else if (option == SO_LINGER) {
setSoLinger((Integer) value);
} else if (option == IP_TOS) {
setTrafficClass((Integer) value);
} else if (option == ALLOW_HALF_CLOSURE) {
setAllowHalfClosure((Boolean) value);
} else if (option == IoUringChannelOption.TCP_CORK) {
setTcpCork((Boolean) value);
} else if (option == IoUringChannelOption.TCP_NOTSENT_LOWAT) {
setTcpNotSentLowAt((Long) value);
} else if (option == IoUringChannelOption.TCP_KEEPIDLE) {
setTcpKeepIdle((Integer) value);
} else if (option == IoUringChannelOption.TCP_KEEPCNT) {
setTcpKeepCnt((Integer) value);
} else if (option == IoUringChannelOption.TCP_KEEPINTVL) {
setTcpKeepIntvl((Integer) value);
} else if (option == IoUringChannelOption.TCP_USER_TIMEOUT) {
setTcpUserTimeout((Integer) value);
} else if (option == IoUringChannelOption.IP_TRANSPARENT) {
setIpTransparent((Boolean) value);
} else if (option == IoUringChannelOption.TCP_QUICKACK) {
setTcpQuickAck((Boolean) value);
} else if (option == ChannelOption.TCP_FASTOPEN_CONNECT) {
setTcpFastOpenConnect((Boolean) value);
} else if (option == IoUringChannelOption.IO_URING_WRITE_ZERO_COPY_THRESHOLD) {
setWriteZeroCopyThreshold((Integer) value);
} else {
return super.setOption(option, value);
}
return true;
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does setOption() do?
setOption() is a function in the netty codebase, defined in transport-classes-io_uring/src/main/java/io/netty/channel/uring/IoUringSocketChannelConfig.java.
Where is setOption() defined?
setOption() is defined in transport-classes-io_uring/src/main/java/io/netty/channel/uring/IoUringSocketChannelConfig.java at line 119.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free