QuoteOfTheMomentServer Class — netty Architecture
Architecture documentation for the QuoteOfTheMomentServer class in QuoteOfTheMomentServer.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 821a9668_0c60_2163_6a42_9cc8216581d7["QuoteOfTheMomentServer"] a2d15847_cb85_8453_c625_364b658ad8be["QuoteOfTheMomentServer.java"] 821a9668_0c60_2163_6a42_9cc8216581d7 -->|defined in| a2d15847_cb85_8453_c625_364b658ad8be ea22931a_3f52_067d_719c_d69ad7414c45["main()"] 821a9668_0c60_2163_6a42_9cc8216581d7 -->|method| ea22931a_3f52_067d_719c_d69ad7414c45
Relationship Graph
Source Code
example/src/main/java/io/netty/example/qotm/QuoteOfTheMomentServer.java lines 31–49
public final class QuoteOfTheMomentServer {
private static final int PORT = Integer.parseInt(System.getProperty("port", "7686"));
public static void main(String[] args) throws Exception {
EventLoopGroup group = new MultiThreadIoEventLoopGroup(NioIoHandler.newFactory());
try {
Bootstrap b = new Bootstrap();
b.group(group)
.channel(NioDatagramChannel.class)
.option(ChannelOption.SO_BROADCAST, true)
.handler(new QuoteOfTheMomentServerHandler());
b.bind(PORT).sync().channel().closeFuture().await();
} finally {
group.shutdownGracefully();
}
}
}
Source
Frequently Asked Questions
What is the QuoteOfTheMomentServer class?
QuoteOfTheMomentServer is a class in the netty codebase, defined in example/src/main/java/io/netty/example/qotm/QuoteOfTheMomentServer.java.
Where is QuoteOfTheMomentServer defined?
QuoteOfTheMomentServer is defined in example/src/main/java/io/netty/example/qotm/QuoteOfTheMomentServer.java at line 31.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free