Home / Function/ closeWhileIteratingDoesNotNPE() — netty Function Reference

closeWhileIteratingDoesNotNPE() — netty Function Reference

Architecture documentation for the closeWhileIteratingDoesNotNPE() function in WeightedFairQueueByteDistributorDependencyTreeTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  ec73cc64_7a99_abb0_93c9_2c2c5ef674d8["closeWhileIteratingDoesNotNPE()"]
  f59fdba5_c411_919e_8d09_ef11c6679e0d["WeightedFairQueueByteDistributorDependencyTreeTest"]
  ec73cc64_7a99_abb0_93c9_2c2c5ef674d8 -->|defined in| f59fdba5_c411_919e_8d09_ef11c6679e0d
  style ec73cc64_7a99_abb0_93c9_2c2c5ef674d8 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http2/src/test/java/io/netty/handler/codec/http2/WeightedFairQueueByteDistributorDependencyTreeTest.java lines 76–90

    @Test
    public void closeWhileIteratingDoesNotNPE() throws Http2Exception {
        final Http2Stream streamA = connection.local().createStream(3, false);
        final Http2Stream streamB = connection.local().createStream(5, false);
        final Http2Stream streamC = connection.local().createStream(7, false);
        setPriority(streamB.id(), streamA.id(), DEFAULT_PRIORITY_WEIGHT, false);
        connection.forEachActiveStream(new Http2StreamVisitor() {
            @Override
            public boolean visit(Http2Stream stream) throws Http2Exception {
                streamA.close();
                setPriority(streamB.id(), streamC.id(), DEFAULT_PRIORITY_WEIGHT, false);
                return true;
            }
        });
    }

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free