EmbeddedChannel() — netty Function Reference
Architecture documentation for the EmbeddedChannel() function in ByteToMessageDecoderTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 5082856a_b229_862d_0072_81f9b24f56a3["EmbeddedChannel()"] b1c999fe_35fb_8b70_a958_296cffb0616a["ByteToMessageDecoderTest"] 5082856a_b229_862d_0072_81f9b24f56a3 -->|defined in| b1c999fe_35fb_8b70_a958_296cffb0616a 6f8ca1c9_2e0a_cabe_0014_b5ad61e0d753["testRemoveItself()"] 6f8ca1c9_2e0a_cabe_0014_b5ad61e0d753 -->|calls| 5082856a_b229_862d_0072_81f9b24f56a3 2958e749_3d93_7b3e_0aa1_45be254190fe["testRemoveItselfWriteBuffer()"] 2958e749_3d93_7b3e_0aa1_45be254190fe -->|calls| 5082856a_b229_862d_0072_81f9b24f56a3 c086c53d_4e79_5402_b1ef_099d8db02408["handlerRemovedWillNotReleaseBufferIfDecodeInProgress()"] c086c53d_4e79_5402_b1ef_099d8db02408 -->|calls| 5082856a_b229_862d_0072_81f9b24f56a3 9718af44_d4ad_5564_6a71_991f41945996["testFireChannelReadCompleteOnInactive()"] 9718af44_d4ad_5564_6a71_991f41945996 -->|calls| 5082856a_b229_862d_0072_81f9b24f56a3 9247eabb_a09b_cac5_89fd_993c11b416f4["testRemoveWhileInCallDecode()"] 9247eabb_a09b_cac5_89fd_993c11b416f4 -->|calls| 5082856a_b229_862d_0072_81f9b24f56a3 99af3ed4_5872_2bc2_ddbc_5d558d033dc0["testDecodeLastEmptyBuffer()"] 99af3ed4_5872_2bc2_ddbc_5d558d033dc0 -->|calls| 5082856a_b229_862d_0072_81f9b24f56a3 5185bf22_9ccd_65c9_b750_375e3adc5f50["testDecodeLastNonEmptyBuffer()"] 5185bf22_9ccd_65c9_b750_375e3adc5f50 -->|calls| 5082856a_b229_862d_0072_81f9b24f56a3 90dce904_8279_671e_9cd4_a212751e3b18["testReadOnlyBuffer()"] 90dce904_8279_671e_9cd4_a212751e3b18 -->|calls| 5082856a_b229_862d_0072_81f9b24f56a3 0856d66a_7f97_27bf_0f71_a370dbf04e05["testDoesNotOverRead()"] 0856d66a_7f97_27bf_0f71_a370dbf04e05 -->|calls| 5082856a_b229_862d_0072_81f9b24f56a3 13efa6ae_e9c7_7843_b318_00dc39d4fce6["testDoesNotOverReadOnChannelReadComplete()"] 13efa6ae_e9c7_7843_b318_00dc39d4fce6 -->|calls| 5082856a_b229_862d_0072_81f9b24f56a3 51bf3afe_7701_f2f4_a26d_7b21c481d21e["testDisorder()"] 51bf3afe_7701_f2f4_a26d_7b21c481d21e -->|calls| 5082856a_b229_862d_0072_81f9b24f56a3 02dc5169_12b5_1b09_ecdd_e7733c4ec2c4["testDecodeLast()"] 02dc5169_12b5_1b09_ecdd_e7733c4ec2c4 -->|calls| 5082856a_b229_862d_0072_81f9b24f56a3 972008e6_186e_aef9_8e17_0cd0f52093cc["testUnexpectRead()"] 972008e6_186e_aef9_8e17_0cd0f52093cc -->|calls| 5082856a_b229_862d_0072_81f9b24f56a3 style 5082856a_b229_862d_0072_81f9b24f56a3 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-base/src/test/java/io/netty/handler/codec/ByteToMessageDecoderTest.java lines 130–146
private EmbeddedChannel newInternalBufferTestChannel() {
return new EmbeddedChannel(new ByteToMessageDecoder() {
@Override
protected void decode(ChannelHandlerContext ctx, ByteBuf in, List<Object> out) throws Exception {
ByteBuf byteBuf = internalBuffer();
assertEquals(1, byteBuf.refCnt());
in.readByte();
// Removal from pipeline should clear internal buffer
ctx.pipeline().remove(this);
}
@Override
protected void handlerRemoved0(ChannelHandlerContext ctx) throws Exception {
assertCumulationReleased(internalBuffer());
}
});
}
Domain
Subdomains
Called By
- handlerRemovedWillNotReleaseBufferIfDecodeInProgress()
- reentrantReadSafety()
- reentrantReadThenRemoveSafety()
- testDecodeLast()
- testDecodeLastEmptyBuffer()
- testDecodeLastNonEmptyBuffer()
- testDisorder()
- testDoesNotOverRead()
- testDoesNotOverReadOnChannelReadComplete()
- testFireChannelReadCompleteOnInactive()
- testReadOnlyBuffer()
- testRemoveItself()
- testRemoveItselfWriteBuffer()
- testRemoveWhileInCallDecode()
- testReusedBuffer()
- testUnexpectRead()
Source
Frequently Asked Questions
What does EmbeddedChannel() do?
EmbeddedChannel() is a function in the netty codebase, defined in codec-base/src/test/java/io/netty/handler/codec/ByteToMessageDecoderTest.java.
Where is EmbeddedChannel() defined?
EmbeddedChannel() is defined in codec-base/src/test/java/io/netty/handler/codec/ByteToMessageDecoderTest.java at line 130.
What does EmbeddedChannel() call?
EmbeddedChannel() calls 1 function(s): assertCumulationReleased.
What calls EmbeddedChannel()?
EmbeddedChannel() is called by 16 function(s): handlerRemovedWillNotReleaseBufferIfDecodeInProgress, reentrantReadSafety, reentrantReadThenRemoveSafety, testDecodeLast, testDecodeLastEmptyBuffer, testDecodeLastNonEmptyBuffer, testDisorder, testDoesNotOverRead, and 8 more.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free