NioUdtAcceptorChannel Class — netty Architecture
Architecture documentation for the NioUdtAcceptorChannel class in NioUdtAcceptorChannel.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 5ed1b4e6_607f_ea13_fa5a_c95b372c2127["NioUdtAcceptorChannel"] 4492169a_847a_c037_be84_0778785cc5c2["NioUdtAcceptorChannel.java"] 5ed1b4e6_607f_ea13_fa5a_c95b372c2127 -->|defined in| 4492169a_847a_c037_be84_0778785cc5c2 6efe375b_6f71_9547_b549_04ca1e69baa5["NioUdtAcceptorChannel()"] 5ed1b4e6_607f_ea13_fa5a_c95b372c2127 -->|method| 6efe375b_6f71_9547_b549_04ca1e69baa5 b05220df_896e_3b71_bb39_bdaa6bd3c259["UdtServerChannelConfig()"] 5ed1b4e6_607f_ea13_fa5a_c95b372c2127 -->|method| b05220df_896e_3b71_bb39_bdaa6bd3c259 4f7d92a6_6405_403d_eb49_d17bb187ce0b["doBind()"] 5ed1b4e6_607f_ea13_fa5a_c95b372c2127 -->|method| 4f7d92a6_6405_403d_eb49_d17bb187ce0b 98d791bf_0c48_c650_c108_46404d87dea2["doClose()"] 5ed1b4e6_607f_ea13_fa5a_c95b372c2127 -->|method| 98d791bf_0c48_c650_c108_46404d87dea2 f2118e57_fbb9_1d00_6045_f07f913df077["doConnect()"] 5ed1b4e6_607f_ea13_fa5a_c95b372c2127 -->|method| f2118e57_fbb9_1d00_6045_f07f913df077 98325370_abb7_ef18_ed52_1297d7bc2626["doDisconnect()"] 5ed1b4e6_607f_ea13_fa5a_c95b372c2127 -->|method| 98325370_abb7_ef18_ed52_1297d7bc2626 4156fd61_3ae6_b1a9_c03b_caf43ebc5a5b["doFinishConnect()"] 5ed1b4e6_607f_ea13_fa5a_c95b372c2127 -->|method| 4156fd61_3ae6_b1a9_c03b_caf43ebc5a5b 02b0c8a9_2778_d6bf_2d17_e8159a4224b9["doWriteMessage()"] 5ed1b4e6_607f_ea13_fa5a_c95b372c2127 -->|method| 02b0c8a9_2778_d6bf_2d17_e8159a4224b9 51f97ae1_166f_0568_95ae_74355614fada["Object()"] 5ed1b4e6_607f_ea13_fa5a_c95b372c2127 -->|method| 51f97ae1_166f_0568_95ae_74355614fada d59bcec9_1acb_2871_a8a8_e161e9de1f16["isActive()"] 5ed1b4e6_607f_ea13_fa5a_c95b372c2127 -->|method| d59bcec9_1acb_2871_a8a8_e161e9de1f16 f50e7e3a_98d1_0cd5_4b99_7f2a16be2552["ServerSocketChannelUDT()"] 5ed1b4e6_607f_ea13_fa5a_c95b372c2127 -->|method| f50e7e3a_98d1_0cd5_4b99_7f2a16be2552 c285eb0e_b149_4f39_c892_32660693c51e["SocketAddress()"] 5ed1b4e6_607f_ea13_fa5a_c95b372c2127 -->|method| c285eb0e_b149_4f39_c892_32660693c51e 39b887e8_d22e_c0c6_e754_9477c783a844["InetSocketAddress()"] 5ed1b4e6_607f_ea13_fa5a_c95b372c2127 -->|method| 39b887e8_d22e_c0c6_e754_9477c783a844
Relationship Graph
Source Code
transport-udt/src/main/java/io/netty/channel/udt/nio/NioUdtAcceptorChannel.java lines 44–163
@Deprecated
public abstract class NioUdtAcceptorChannel extends AbstractNioMessageChannel implements UdtServerChannel {
protected static final InternalLogger logger =
InternalLoggerFactory.getInstance(NioUdtAcceptorChannel.class);
private static final ChannelMetadata METADATA = new ChannelMetadata(false, 16);
private final UdtServerChannelConfig config;
protected NioUdtAcceptorChannel(final ServerSocketChannelUDT channelUDT) {
super(null, channelUDT, OP_ACCEPT);
try {
channelUDT.configureBlocking(false);
config = new DefaultUdtServerChannelConfig(this, channelUDT, true);
} catch (final Exception e) {
try {
channelUDT.close();
} catch (final Exception e2) {
if (logger.isWarnEnabled()) {
logger.warn("Failed to close channel.", e2);
}
}
throw new ChannelException("Failed to configure channel.", e);
}
}
protected NioUdtAcceptorChannel(final TypeUDT type) {
this(NioUdtProvider.newAcceptorChannelUDT(type));
}
@Override
public UdtServerChannelConfig config() {
return config;
}
@Override
protected void doBind(final SocketAddress localAddress) throws Exception {
javaChannel().socket().bind(localAddress, config.getBacklog());
}
@Override
protected void doClose() throws Exception {
javaChannel().close();
}
@Override
protected boolean doConnect(final SocketAddress remoteAddress,
final SocketAddress localAddress) throws Exception {
throw new UnsupportedOperationException();
}
@Override
protected void doDisconnect() throws Exception {
throw new UnsupportedOperationException();
}
@Override
protected void doFinishConnect() throws Exception {
throw new UnsupportedOperationException();
}
@Override
protected boolean doWriteMessage(Object msg, ChannelOutboundBuffer in) throws Exception {
throw new UnsupportedOperationException();
}
@Override
protected final Object filterOutboundMessage(Object msg) throws Exception {
throw new UnsupportedOperationException();
}
@Override
public boolean isActive() {
return javaChannel().socket().isBound();
}
@Override
protected ServerSocketChannelUDT javaChannel() {
return (ServerSocketChannelUDT) super.javaChannel();
}
Source
Frequently Asked Questions
What is the NioUdtAcceptorChannel class?
NioUdtAcceptorChannel is a class in the netty codebase, defined in transport-udt/src/main/java/io/netty/channel/udt/nio/NioUdtAcceptorChannel.java.
Where is NioUdtAcceptorChannel defined?
NioUdtAcceptorChannel is defined in transport-udt/src/main/java/io/netty/channel/udt/nio/NioUdtAcceptorChannel.java at line 44.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free