Home / Function/ main() — netty Function Reference

main() — netty Function Reference

Architecture documentation for the main() function in Launcher.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  f7dcab50_5562_2019_daab_b72c43b13b6e["main()"]
  c029a0d5_f943_1574_8d11_a39ea69d4dbf["Launcher"]
  f7dcab50_5562_2019_daab_b72c43b13b6e -->|defined in| c029a0d5_f943_1574_8d11_a39ea69d4dbf
  style f7dcab50_5562_2019_daab_b72c43b13b6e fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

example/src/main/java/io/netty/example/http2/tiles/Launcher.java lines 39–52

    public static void main(String[] args) {
        EventLoopGroup group = new MultiThreadIoEventLoopGroup(NioIoHandler.newFactory());
        Http2Server http2 = new Http2Server(group);
        HttpServer http = new HttpServer(group);
        try {
            http2.start();
            System.err.println("Open your web browser and navigate to " + "http://" + Html.IP + ":" + HttpServer.PORT);
            http.start().sync();
        } catch (Exception e) {
            e.printStackTrace();
        } finally {
            group.shutdownGracefully();
        }
    }

Domain

Subdomains

Frequently Asked Questions

What does main() do?
main() is a function in the netty codebase, defined in example/src/main/java/io/netty/example/http2/tiles/Launcher.java.
Where is main() defined?
main() is defined in example/src/main/java/io/netty/example/http2/tiles/Launcher.java at line 39.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free