Home / Function/ lastPartialReadCanRampUp() — netty Function Reference

lastPartialReadCanRampUp() — netty Function Reference

Architecture documentation for the lastPartialReadCanRampUp() function in AdaptiveRecvByteBufAllocatorTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  2f3076f0_ee77_2120_4c99_02a0890d4925["lastPartialReadCanRampUp()"]
  5011819c_2beb_6635_01ff_c14382c1d5a5["AdaptiveRecvByteBufAllocatorTest"]
  2f3076f0_ee77_2120_4c99_02a0890d4925 -->|defined in| 5011819c_2beb_6635_01ff_c14382c1d5a5
  1c4fca03_b029_5a21_08c8_7ddda96ef416["allocReadExpected()"]
  2f3076f0_ee77_2120_4c99_02a0890d4925 -->|calls| 1c4fca03_b029_5a21_08c8_7ddda96ef416
  f1b65935_c236_8693_58bc_5537b238709a["allocRead()"]
  2f3076f0_ee77_2120_4c99_02a0890d4925 -->|calls| f1b65935_c236_8693_58bc_5537b238709a
  style 2f3076f0_ee77_2120_4c99_02a0890d4925 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

transport/src/test/java/io/netty/channel/AdaptiveRecvByteBufAllocatorTest.java lines 91–101

    @Test
    public void lastPartialReadCanRampUp() {
        allocReadExpected(handle, alloc, 512);
        // We simulate there is just 1 less byte than we try to read, but because of the adaptive steps the total amount
        // of bytes read for this read cycle steps up to prepare for the next read cycle.
        allocRead(handle, alloc, 8192, 8191);
        handle.readComplete();

        handle.reset(config);
        allocReadExpected(handle, alloc, 131072);
    }

Domain

Subdomains

Frequently Asked Questions

What does lastPartialReadCanRampUp() do?
lastPartialReadCanRampUp() is a function in the netty codebase, defined in transport/src/test/java/io/netty/channel/AdaptiveRecvByteBufAllocatorTest.java.
Where is lastPartialReadCanRampUp() defined?
lastPartialReadCanRampUp() is defined in transport/src/test/java/io/netty/channel/AdaptiveRecvByteBufAllocatorTest.java at line 91.
What does lastPartialReadCanRampUp() call?
lastPartialReadCanRampUp() calls 2 function(s): allocRead, allocReadExpected.

Analyze Your Own Codebase

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

Try Supermodel Free