run() — netty Function Reference
Architecture documentation for the run() function in AutobahnServer.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 372c8382_5835_52eb_dfa8_f1feffe27f33["run()"] c8849536_a67f_0799_3c1a_c71e4ec6d145["AutobahnServer"] 372c8382_5835_52eb_dfa8_f1feffe27f33 -->|defined in| c8849536_a67f_0799_3c1a_c71e4ec6d145 bb53466f_7329_2040_7331_e79c89b0faf2["main()"] bb53466f_7329_2040_7331_e79c89b0faf2 -->|calls| 372c8382_5835_52eb_dfa8_f1feffe27f33 style 372c8382_5835_52eb_dfa8_f1feffe27f33 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
testsuite-autobahn/src/main/java/io/netty/testsuite/autobahn/AutobahnServer.java lines 39–54
public void run() throws Exception {
EventLoopGroup group = new MultiThreadIoEventLoopGroup(NioIoHandler.newFactory());
try {
ServerBootstrap b = new ServerBootstrap();
b.group(group)
.channel(NioServerSocketChannel.class)
.childOption(ChannelOption.ALLOCATOR, PooledByteBufAllocator.DEFAULT)
.childHandler(new AutobahnServerInitializer());
ChannelFuture f = b.bind(port).sync();
System.out.println("Web Socket Server started at port " + port);
f.channel().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-autobahn/src/main/java/io/netty/testsuite/autobahn/AutobahnServer.java.
Where is run() defined?
run() is defined in testsuite-autobahn/src/main/java/io/netty/testsuite/autobahn/AutobahnServer.java at line 39.
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