setOption() — netty Function Reference
Architecture documentation for the setOption() function in KQueueChannelConfig.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 466a4566_456c_0594_7a69_66501feabb95["setOption()"] 5b1a4258_c619_2f7e_64fe_ed59667f293f["KQueueChannelConfig"] 466a4566_456c_0594_7a69_66501feabb95 -->|defined in| 5b1a4258_c619_2f7e_64fe_ed59667f293f style 466a4566_456c_0594_7a69_66501feabb95 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
transport-classes-kqueue/src/main/java/io/netty/channel/kqueue/KQueueChannelConfig.java lines 78–102
@Override
public <T> boolean setOption(ChannelOption<T> option, T value) {
validate(option, value);
if (option == RCV_ALLOC_TRANSPORT_PROVIDES_GUESS) {
setRcvAllocTransportProvidesGuess((Boolean) value);
} else {
try {
if (option instanceof IntegerUnixChannelOption) {
IntegerUnixChannelOption opt = (IntegerUnixChannelOption) option;
((AbstractKQueueChannel) channel).socket.setIntOpt(opt.level(), opt.optname(), (Integer) value);
return true;
} else if (option instanceof RawUnixChannelOption) {
RawUnixChannelOption opt = (RawUnixChannelOption) option;
((AbstractKQueueChannel) channel).socket.setRawOpt(opt.level(), opt.optname(), (ByteBuffer) value);
return true;
}
} catch (IOException e) {
throw new ChannelException(e);
}
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-classes-kqueue/src/main/java/io/netty/channel/kqueue/KQueueChannelConfig.java.
Where is setOption() defined?
setOption() is defined in transport-classes-kqueue/src/main/java/io/netty/channel/kqueue/KQueueChannelConfig.java at line 78.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free