DefaultUdtServerChannelConfig Class — netty Architecture
Architecture documentation for the DefaultUdtServerChannelConfig class in DefaultUdtServerChannelConfig.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD a2d3ee03_1343_e966_d979_029aedb560d4["DefaultUdtServerChannelConfig"] 35eebc86_6628_4117_5aa5_5908c61be7f1["DefaultUdtServerChannelConfig.java"] a2d3ee03_1343_e966_d979_029aedb560d4 -->|defined in| 35eebc86_6628_4117_5aa5_5908c61be7f1 c2cf8465_64d7_4dfe_842e_a7448b3a1c80["DefaultUdtServerChannelConfig()"] a2d3ee03_1343_e966_d979_029aedb560d4 -->|method| c2cf8465_64d7_4dfe_842e_a7448b3a1c80 fd795f96_ef08_f56b_e763_ee6fc5b5f271["apply()"] a2d3ee03_1343_e966_d979_029aedb560d4 -->|method| fd795f96_ef08_f56b_e763_ee6fc5b5f271 8b23d1a9_5217_3978_1127_8f176496e951["getBacklog()"] a2d3ee03_1343_e966_d979_029aedb560d4 -->|method| 8b23d1a9_5217_3978_1127_8f176496e951 6dd42d0d_254a_52fb_ea5d_a81df12947c6["T()"] a2d3ee03_1343_e966_d979_029aedb560d4 -->|method| 6dd42d0d_254a_52fb_ea5d_a81df12947c6 361d5b84_9255_7d89_ec9f_70cc73f57362["getOptions()"] a2d3ee03_1343_e966_d979_029aedb560d4 -->|method| 361d5b84_9255_7d89_ec9f_70cc73f57362 7aba66a5_2334_f950_5f50_15151297450c["UdtServerChannelConfig()"] a2d3ee03_1343_e966_d979_029aedb560d4 -->|method| 7aba66a5_2334_f950_5f50_15151297450c 4cbb7dba_d7f8_3e63_239e_c2c062ff8f98["setOption()"] a2d3ee03_1343_e966_d979_029aedb560d4 -->|method| 4cbb7dba_d7f8_3e63_239e_c2c062ff8f98
Relationship Graph
Source Code
transport-udt/src/main/java/io/netty/channel/udt/DefaultUdtServerChannelConfig.java lines 35–209
@Deprecated
public class DefaultUdtServerChannelConfig extends DefaultUdtChannelConfig
implements UdtServerChannelConfig {
private volatile int backlog = 64;
public DefaultUdtServerChannelConfig(
final UdtChannel channel, final ChannelUDT channelUDT, final boolean apply) throws IOException {
super(channel, channelUDT, apply);
if (apply) {
apply(channelUDT);
}
}
@Override
protected void apply(final ChannelUDT channelUDT) throws IOException {
// nothing to apply for now.
}
@Override
public int getBacklog() {
return backlog;
}
@SuppressWarnings("unchecked")
@Override
public <T> T getOption(final ChannelOption<T> option) {
if (option == SO_BACKLOG) {
return (T) Integer.valueOf(getBacklog());
}
return super.getOption(option);
}
@Override
public Map<ChannelOption<?>, Object> getOptions() {
return getOptions(super.getOptions(), SO_BACKLOG);
}
@Override
public UdtServerChannelConfig setBacklog(final int backlog) {
this.backlog = backlog;
return this;
}
@Override
public <T> boolean setOption(final ChannelOption<T> option, final T value) {
validate(option, value);
if (option == SO_BACKLOG) {
setBacklog((Integer) value);
} else {
return super.setOption(option, value);
}
return true;
}
@Override
public UdtServerChannelConfig setProtocolReceiveBufferSize(
final int protocolReceiveBufferSize) {
super.setProtocolReceiveBufferSize(protocolReceiveBufferSize);
return this;
}
@Override
public UdtServerChannelConfig setProtocolSendBufferSize(
final int protocolSendBufferSize) {
super.setProtocolSendBufferSize(protocolSendBufferSize);
return this;
}
@Override
public UdtServerChannelConfig setReceiveBufferSize(
final int receiveBufferSize) {
super.setReceiveBufferSize(receiveBufferSize);
return this;
}
@Override
public UdtServerChannelConfig setReuseAddress(final boolean reuseAddress) {
super.setReuseAddress(reuseAddress);
return this;
}
Source
Frequently Asked Questions
What is the DefaultUdtServerChannelConfig class?
DefaultUdtServerChannelConfig is a class in the netty codebase, defined in transport-udt/src/main/java/io/netty/channel/udt/DefaultUdtServerChannelConfig.java.
Where is DefaultUdtServerChannelConfig defined?
DefaultUdtServerChannelConfig is defined in transport-udt/src/main/java/io/netty/channel/udt/DefaultUdtServerChannelConfig.java at line 35.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free