main() — netty Function Reference
Architecture documentation for the main() function in FactorialServer.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD d9cf6027_c4e0_0119_85c8_2d9e08c4e769["main()"] e36f8325_c0ff_6d68_4376_14f7e4e1de47["FactorialServer"] d9cf6027_c4e0_0119_85c8_2d9e08c4e769 -->|defined in| e36f8325_c0ff_6d68_4376_14f7e4e1de47 style d9cf6027_c4e0_0119_85c8_2d9e08c4e769 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
example/src/main/java/io/netty/example/factorial/FactorialServer.java lines 36–52
public static void main(String[] args) throws Exception {
// Configure SSL.
final SslContext sslCtx = ServerUtil.buildSslContext();
EventLoopGroup group = new MultiThreadIoEventLoopGroup(NioIoHandler.newFactory());
try {
ServerBootstrap b = new ServerBootstrap();
b.group(group)
.channel(NioServerSocketChannel.class)
.handler(new LoggingHandler(LogLevel.INFO))
.childHandler(new FactorialServerInitializer(sslCtx));
b.bind(PORT).sync().channel().closeFuture().sync();
} finally {
group.shutdownGracefully();
}
}
Domain
Subdomains
Source
Frequently Asked Questions
What does main() do?
main() is a function in the netty codebase, defined in example/src/main/java/io/netty/example/factorial/FactorialServer.java.
Where is main() defined?
main() is defined in example/src/main/java/io/netty/example/factorial/FactorialServer.java at line 36.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free