handlerRemovedWillNotReleaseBufferIfDecodeInProgress() — netty Function Reference
Architecture documentation for the handlerRemovedWillNotReleaseBufferIfDecodeInProgress() function in ReplayingDecoderTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 6075117b_2db1_ede0_b22c_1086558b8427["handlerRemovedWillNotReleaseBufferIfDecodeInProgress()"] 342ea63b_1bca_5900_7b37_0cc8ddc3402d["ReplayingDecoderTest"] 6075117b_2db1_ede0_b22c_1086558b8427 -->|defined in| 342ea63b_1bca_5900_7b37_0cc8ddc3402d 0bda4795_4d98_a4e1_d850_763cc1379646["decode()"] 6075117b_2db1_ede0_b22c_1086558b8427 -->|calls| 0bda4795_4d98_a4e1_d850_763cc1379646 f1e6d06b_9916_b3d2_ec90_4ddc4e22c0a3["assertCumulationReleased()"] 6075117b_2db1_ede0_b22c_1086558b8427 -->|calls| f1e6d06b_9916_b3d2_ec90_4ddc4e22c0a3 style 6075117b_2db1_ede0_b22c_1086558b8427 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-base/src/test/java/io/netty/handler/codec/ReplayingDecoderTest.java lines 294–313
@Test
public void handlerRemovedWillNotReleaseBufferIfDecodeInProgress() {
EmbeddedChannel channel = new EmbeddedChannel(new ReplayingDecoder<Integer>() {
@Override
protected void decode(ChannelHandlerContext ctx, ByteBuf in, List<Object> out) throws Exception {
ctx.pipeline().remove(this);
assertTrue(in.refCnt() != 0);
}
@Override
protected void handlerRemoved0(ChannelHandlerContext ctx) throws Exception {
assertCumulationReleased(internalBuffer());
}
});
byte[] bytes = new byte[1024];
ThreadLocalRandom.current().nextBytes(bytes);
assertTrue(channel.writeInbound(Unpooled.wrappedBuffer(bytes)));
assertTrue(channel.finishAndReleaseAll());
}
Domain
Subdomains
Source
Frequently Asked Questions
What does handlerRemovedWillNotReleaseBufferIfDecodeInProgress() do?
handlerRemovedWillNotReleaseBufferIfDecodeInProgress() is a function in the netty codebase, defined in codec-base/src/test/java/io/netty/handler/codec/ReplayingDecoderTest.java.
Where is handlerRemovedWillNotReleaseBufferIfDecodeInProgress() defined?
handlerRemovedWillNotReleaseBufferIfDecodeInProgress() is defined in codec-base/src/test/java/io/netty/handler/codec/ReplayingDecoderTest.java at line 294.
What does handlerRemovedWillNotReleaseBufferIfDecodeInProgress() call?
handlerRemovedWillNotReleaseBufferIfDecodeInProgress() calls 2 function(s): assertCumulationReleased, decode.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free