setOption() — netty Function Reference
Architecture documentation for the setOption() function in DefaultSocketChannelConfig.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 7ca6c435_75cf_5397_91f4_82717eb9af94["setOption()"] 19c985a5_6de2_b73a_b8be_44fdb6a24808["DefaultSocketChannelConfig"] 7ca6c435_75cf_5397_91f4_82717eb9af94 -->|defined in| 19c985a5_6de2_b73a_b8be_44fdb6a24808 style 7ca6c435_75cf_5397_91f4_82717eb9af94 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
transport/src/main/java/io/netty/channel/socket/DefaultSocketChannelConfig.java lines 99–124
@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 {
return super.setOption(option, value);
}
return true;
}
Domain
Subdomains
Source
Frequently Asked Questions
What does setOption() do?
setOption() is a function in the netty codebase, defined in transport/src/main/java/io/netty/channel/socket/DefaultSocketChannelConfig.java.
Where is setOption() defined?
setOption() is defined in transport/src/main/java/io/netty/channel/socket/DefaultSocketChannelConfig.java at line 99.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free