main() — netty Function Reference
Architecture documentation for the main() function in HAProxyServer.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD bdd71917_2c99_a6b1_77c8_62250ade04ec["main()"] be934c1f_7694_9c3a_a71d_599bf08a090e["HAProxyServer"] bdd71917_2c99_a6b1_77c8_62250ade04ec -->|defined in| be934c1f_7694_9c3a_a71d_599bf08a090e style bdd71917_2c99_a6b1_77c8_62250ade04ec fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
example/src/main/java/io/netty/example/haproxy/HAProxyServer.java lines 39–51
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 HAProxyServerInitializer());
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/haproxy/HAProxyServer.java.
Where is main() defined?
main() is defined in example/src/main/java/io/netty/example/haproxy/HAProxyServer.java at line 39.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free