handlerRemoved() — netty Function Reference
Architecture documentation for the handlerRemoved() function in ByteToMessageDecoder.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD df62d6fb_323f_5e89_3bf7_8847293a1412["handlerRemoved()"] efe4959f_3296_dbb1_4a4b_76b9d7ccec55["ByteToMessageDecoder"] df62d6fb_323f_5e89_3bf7_8847293a1412 -->|defined in| efe4959f_3296_dbb1_4a4b_76b9d7ccec55 ee472e33_1a7d_641f_3906_3ad2ada7997f["decodeRemovalReentryProtection()"] ee472e33_1a7d_641f_3906_3ad2ada7997f -->|calls| df62d6fb_323f_5e89_3bf7_8847293a1412 07d205b6_501b_721f_b872_e8e378f3c54d["fireChannelRead()"] df62d6fb_323f_5e89_3bf7_8847293a1412 -->|calls| 07d205b6_501b_721f_b872_e8e378f3c54d 2fa71007_ea6a_c7bc_da66_51f4480aa368["handlerRemoved0()"] df62d6fb_323f_5e89_3bf7_8847293a1412 -->|calls| 2fa71007_ea6a_c7bc_da66_51f4480aa368 style df62d6fb_323f_5e89_3bf7_8847293a1412 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-base/src/main/java/io/netty/handler/codec/ByteToMessageDecoder.java lines 257–277
@Override
public final void handlerRemoved(ChannelHandlerContext ctx) throws Exception {
if (decodeState == STATE_CALLING_CHILD_DECODE) {
decodeState = STATE_HANDLER_REMOVED_PENDING;
return;
}
ByteBuf buf = cumulation;
if (buf != null) {
// Directly set this to null, so we are sure we not access it in any other method here anymore.
cumulation = null;
numReads = 0;
int readable = buf.readableBytes();
if (readable > 0) {
ctx.fireChannelRead(buf);
ctx.fireChannelReadComplete();
} else {
buf.release();
}
}
handlerRemoved0(ctx);
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does handlerRemoved() do?
handlerRemoved() is a function in the netty codebase, defined in codec-base/src/main/java/io/netty/handler/codec/ByteToMessageDecoder.java.
Where is handlerRemoved() defined?
handlerRemoved() is defined in codec-base/src/main/java/io/netty/handler/codec/ByteToMessageDecoder.java at line 257.
What does handlerRemoved() call?
handlerRemoved() calls 2 function(s): fireChannelRead, handlerRemoved0.
What calls handlerRemoved()?
handlerRemoved() is called by 1 function(s): decodeRemovalReentryProtection.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free