Home / Function/ testReleaseClosed() — netty Function Reference

testReleaseClosed() — netty Function Reference

Architecture documentation for the testReleaseClosed() function in FixedChannelPoolTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  4a72657c_5d29_d461_8cea_127825a39655["testReleaseClosed()"]
  92761f16_3144_6791_29c9_00f65a091a8f["FixedChannelPoolTest"]
  4a72657c_5d29_d461_8cea_127825a39655 -->|defined in| 92761f16_3144_6791_29c9_00f65a091a8f
  style 4a72657c_5d29_d461_8cea_127825a39655 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

transport/src/test/java/io/netty/channel/pool/FixedChannelPoolTest.java lines 252–266

    @Test
    public void testReleaseClosed() {
        Tuple t = bootstrap();

        // Start server
        Channel sc = t.sb.bind(t.address).syncUninterruptibly().channel();

        FixedChannelPool pool = new FixedChannelPool(t.cb, new TestChannelPoolHandler(), 2);
        Channel channel = pool.acquire().syncUninterruptibly().getNow();
        channel.close().syncUninterruptibly();
        pool.release(channel).syncUninterruptibly();

        sc.close().syncUninterruptibly();
        pool.close();
    }

Domain

Subdomains

Frequently Asked Questions

What does testReleaseClosed() do?
testReleaseClosed() is a function in the netty codebase, defined in transport/src/test/java/io/netty/channel/pool/FixedChannelPoolTest.java.
Where is testReleaseClosed() defined?
testReleaseClosed() is defined in transport/src/test/java/io/netty/channel/pool/FixedChannelPoolTest.java at line 252.

Analyze Your Own Codebase

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

Try Supermodel Free