Home / Function/ testRecycle() — netty Function Reference

testRecycle() — netty Function Reference

Architecture documentation for the testRecycle() function in RecyclerTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  22b5838f_ef41_7f0e_e808_78969bb0f5f2["testRecycle()"]
  46ac14b1_2382_5afa_98f3_803182070b38["RecyclerTest"]
  22b5838f_ef41_7f0e_e808_78969bb0f5f2 -->|defined in| 46ac14b1_2382_5afa_98f3_803182070b38
  87dca999_f804_a974_e326_fd8f527f1246["newRecycler()"]
  22b5838f_ef41_7f0e_e808_78969bb0f5f2 -->|calls| 87dca999_f804_a974_e326_fd8f527f1246
  43ab40f6_52e7_0fe9_a79f_220021939268["recycle()"]
  22b5838f_ef41_7f0e_e808_78969bb0f5f2 -->|calls| 43ab40f6_52e7_0fe9_a79f_220021939268
  style 22b5838f_ef41_7f0e_e808_78969bb0f5f2 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

common/src/test/java/io/netty/util/RecyclerTest.java lines 387–396

    @ParameterizedTest
    @MethodSource("ownerTypeAndUnguarded")
    public void testRecycle(OwnerType ownerType, boolean unguarded) {
        Recycler<HandledObject> recycler = newRecycler(ownerType, unguarded, 1024);
        HandledObject object = recycler.get();
        object.recycle();
        HandledObject object2 = recycler.get();
        assertSame(object, object2);
        object2.recycle();
    }

Domain

Subdomains

Frequently Asked Questions

What does testRecycle() do?
testRecycle() is a function in the netty codebase, defined in common/src/test/java/io/netty/util/RecyclerTest.java.
Where is testRecycle() defined?
testRecycle() is defined in common/src/test/java/io/netty/util/RecyclerTest.java at line 387.
What does testRecycle() call?
testRecycle() calls 2 function(s): newRecycler, recycle.

Analyze Your Own Codebase

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

Try Supermodel Free