run() — netty Function Reference
Architecture documentation for the run() function in Http2Server.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 17f21b61_4549_11b5_33e6_2ce98dbae059["run()"] 894d1994_c3df_cfd6_4c80_c119e22510fd["Http2Server"] 17f21b61_4549_11b5_33e6_2ce98dbae059 -->|defined in| 894d1994_c3df_cfd6_4c80_c119e22510fd 64bc95f4_08ad_a565_5889_c64376107946["main()"] 64bc95f4_08ad_a565_5889_c64376107946 -->|calls| 17f21b61_4549_11b5_33e6_2ce98dbae059 style 17f21b61_4549_11b5_33e6_2ce98dbae059 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
testsuite-http2/src/main/java/io/netty/testsuite/http2/Http2Server.java lines 41–58
void run() throws Exception {
// Configure the server.
EventLoopGroup group = new MultiThreadIoEventLoopGroup(NioIoHandler.newFactory());
try {
ServerBootstrap b = new ServerBootstrap();
b.option(ChannelOption.SO_BACKLOG, 1024);
b.group(group)
.channel(NioServerSocketChannel.class)
.handler(new LoggingHandler(LogLevel.INFO))
.childHandler(new Http2ServerInitializer());
Channel ch = b.bind(port).sync().channel();
ch.closeFuture().sync();
} finally {
group.shutdownGracefully();
}
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does run() do?
run() is a function in the netty codebase, defined in testsuite-http2/src/main/java/io/netty/testsuite/http2/Http2Server.java.
Where is run() defined?
run() is defined in testsuite-http2/src/main/java/io/netty/testsuite/http2/Http2Server.java at line 41.
What calls run()?
run() is called by 1 function(s): main.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free