WorldClockServer Class — netty Architecture
Architecture documentation for the WorldClockServer class in WorldClockServer.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 41ec3cec_2d2b_d9ae_2217_4e2127ab21de["WorldClockServer"] d0fc8249_b555_da83_59d6_39dcb2442224["WorldClockServer.java"] 41ec3cec_2d2b_d9ae_2217_4e2127ab21de -->|defined in| d0fc8249_b555_da83_59d6_39dcb2442224 393e6c8f_0f5e_bede_ef92_9827275817cb["main()"] 41ec3cec_2d2b_d9ae_2217_4e2127ab21de -->|method| 393e6c8f_0f5e_bede_ef92_9827275817cb
Relationship Graph
Source Code
example/src/main/java/io/netty/example/worldclock/WorldClockServer.java lines 31–50
public final class WorldClockServer {
static final int PORT = Integer.parseInt(System.getProperty("port", "8463"));
public static void main(String[] args) throws Exception {
EventLoopGroup group = new MultiThreadIoEventLoopGroup(NioIoHandler.newFactory());
try {
ServerBootstrap b = new ServerBootstrap();
b.group(group)
.channel(NioServerSocketChannel.class)
.handler(new LoggingHandler(LogLevel.INFO))
.childHandler(new WorldClockServerInitializer(ServerUtil.buildSslContext()));
b.bind(PORT).sync().channel().closeFuture().sync();
} finally {
group.shutdownGracefully();
}
}
}
Source
Frequently Asked Questions
What is the WorldClockServer class?
WorldClockServer is a class in the netty codebase, defined in example/src/main/java/io/netty/example/worldclock/WorldClockServer.java.
Where is WorldClockServer defined?
WorldClockServer is defined in example/src/main/java/io/netty/example/worldclock/WorldClockServer.java at line 31.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free