Home / Function/ Bootstrap() — netty Function Reference

Bootstrap() — netty Function Reference

Architecture documentation for the Bootstrap() function in QuicTestUtils.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  9bd8fc50_640c_5819_dbba_5d00fdb9750b["Bootstrap()"]
  0d70133d_6f8b_a960_819e_56bb9eb22abe["QuicTestUtils"]
  9bd8fc50_640c_5819_dbba_5d00fdb9750b -->|defined in| 0d70133d_6f8b_a960_819e_56bb9eb22abe
  style 9bd8fc50_640c_5819_dbba_5d00fdb9750b fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-native-quic/src/test/java/io/netty/handler/codec/quic/QuicTestUtils.java lines 88–100

    private static Bootstrap newBootstrap() {
        Bootstrap bs = new Bootstrap();
        if (Epoll.isAvailable()) {
            bs.channel(EpollDatagramChannel.class)
                    // Use recvmmsg when possible.
                    .option(EpollChannelOption.MAX_DATAGRAM_PAYLOAD_SIZE, DATAGRAM_SIZE)
                    .option(ChannelOption.RCVBUF_ALLOCATOR, new FixedRecvByteBufAllocator(DATAGRAM_SIZE * 8));
        } else {
            bs.channel(NioDatagramChannel.class)
                    .option(ChannelOption.RCVBUF_ALLOCATOR, new FixedRecvByteBufAllocator(DATAGRAM_SIZE));
        }
        return bs.group(GROUP);
    }

Domain

Subdomains

Frequently Asked Questions

What does Bootstrap() do?
Bootstrap() is a function in the netty codebase, defined in codec-native-quic/src/test/java/io/netty/handler/codec/quic/QuicTestUtils.java.
Where is Bootstrap() defined?
Bootstrap() is defined in codec-native-quic/src/test/java/io/netty/handler/codec/quic/QuicTestUtils.java at line 88.

Analyze Your Own Codebase

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

Try Supermodel Free