Home / Class/ ReadCompleteRecvAllocator Class — netty Architecture

ReadCompleteRecvAllocator Class — netty Architecture

Architecture documentation for the ReadCompleteRecvAllocator class in LocalChannelTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  b04d7d51_3175_2006_5ff2_a9a634b575a5["ReadCompleteRecvAllocator"]
  08ebe769_61fc_27b6_2445_25670081be74["LocalChannelTest.java"]
  b04d7d51_3175_2006_5ff2_a9a634b575a5 -->|defined in| 08ebe769_61fc_27b6_2445_25670081be74
  1676a898_26d5_cddd_6343_42c868715667["ReadCompleteRecvAllocator()"]
  b04d7d51_3175_2006_5ff2_a9a634b575a5 -->|method| 1676a898_26d5_cddd_6343_42c868715667
  16f20638_2ef4_7ba0_48a9_881c9ba42918["Handle()"]
  b04d7d51_3175_2006_5ff2_a9a634b575a5 -->|method| 16f20638_2ef4_7ba0_48a9_881c9ba42918

Relationship Graph

Source Code

transport/src/test/java/io/netty/channel/local/LocalChannelTest.java lines 1302–1323

    private static final class ReadCompleteRecvAllocator extends DefaultMaxMessagesRecvByteBufAllocator {
        private final CountDownLatch latch;
        ReadCompleteRecvAllocator(CountDownLatch latch) {
            this.latch = latch;
        }

        @Override
        public Handle newHandle() {
            return new MaxMessageHandle() {
                @Override
                public int guess() {
                    return 128;
                }

                @Override
                public void readComplete() {
                    super.readComplete();
                    latch.countDown();
                }
            };
        }
    }

Frequently Asked Questions

What is the ReadCompleteRecvAllocator class?
ReadCompleteRecvAllocator is a class in the netty codebase, defined in transport/src/test/java/io/netty/channel/local/LocalChannelTest.java.
Where is ReadCompleteRecvAllocator defined?
ReadCompleteRecvAllocator is defined in transport/src/test/java/io/netty/channel/local/LocalChannelTest.java at line 1302.

Analyze Your Own Codebase

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

Try Supermodel Free