Home / Function/ teardown() — netty Function Reference

teardown() — netty Function Reference

Architecture documentation for the teardown() function in Http2ControlFrameLimitEncoderTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  20b03307_2c6f_9d41_f628_db7041e9dc4b["teardown()"]
  22de4aca_61e4_e560_8713_527c2b02db9e["Http2ControlFrameLimitEncoderTest"]
  20b03307_2c6f_9d41_f628_db7041e9dc4b -->|defined in| 22de4aca_61e4_e560_8713_527c2b02db9e
  style 20b03307_2c6f_9d41_f628_db7041e9dc4b fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http2/src/test/java/io/netty/handler/codec/http2/Http2ControlFrameLimitEncoderTest.java lines 174–188

    @AfterEach
    public void teardown() {
        // Close and release any buffered frames.
        encoder.close();

        // Notify all goAway ChannelPromise instances now as these will also release the retained ByteBuf for the
        // debugData.
        for (;;) {
            ChannelPromise promise = goAwayPromises.poll();
            if (promise == null) {
                break;
            }
            promise.setSuccess();
        }
    }

Domain

Subdomains

Frequently Asked Questions

What does teardown() do?
teardown() is a function in the netty codebase, defined in codec-http2/src/test/java/io/netty/handler/codec/http2/Http2ControlFrameLimitEncoderTest.java.
Where is teardown() defined?
teardown() is defined in codec-http2/src/test/java/io/netty/handler/codec/http2/Http2ControlFrameLimitEncoderTest.java at line 174.

Analyze Your Own Codebase

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

Try Supermodel Free