Home / Function/ channelInputClosed() — netty Function Reference

channelInputClosed() — netty Function Reference

Architecture documentation for the channelInputClosed() function in ByteToMessageDecoder.java from the netty codebase.

Function java Buffer Allocators calls 3 called by 2

Entity Profile

Dependency Diagram

graph TD
  1ab7897f_cdf1_0b3e_43e2_77270fef19fa["channelInputClosed()"]
  efe4959f_3296_dbb1_4a4b_76b9d7ccec55["ByteToMessageDecoder"]
  1ab7897f_cdf1_0b3e_43e2_77270fef19fa -->|defined in| efe4959f_3296_dbb1_4a4b_76b9d7ccec55
  2516fef6_5014_0b3a_cb95_f7e72d6784c0["channelInactive()"]
  2516fef6_5014_0b3a_cb95_f7e72d6784c0 -->|calls| 1ab7897f_cdf1_0b3e_43e2_77270fef19fa
  ab602044_9473_9c14_7996_e621314c7184["userEventTriggered()"]
  ab602044_9473_9c14_7996_e621314c7184 -->|calls| 1ab7897f_cdf1_0b3e_43e2_77270fef19fa
  07d205b6_501b_721f_b872_e8e378f3c54d["fireChannelRead()"]
  1ab7897f_cdf1_0b3e_43e2_77270fef19fa -->|calls| 07d205b6_501b_721f_b872_e8e378f3c54d
  8a34ecfc_930b_5500_f979_83efbe7a340e["callDecode()"]
  1ab7897f_cdf1_0b3e_43e2_77270fef19fa -->|calls| 8a34ecfc_930b_5500_f979_83efbe7a340e
  2780496c_9c50_8513_8319_9a728365e524["decodeLast()"]
  1ab7897f_cdf1_0b3e_43e2_77270fef19fa -->|calls| 2780496c_9c50_8513_8319_9a728365e524
  style 1ab7897f_cdf1_0b3e_43e2_77270fef19fa fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-base/src/main/java/io/netty/handler/codec/ByteToMessageDecoder.java lines 406–434

    private void channelInputClosed(ChannelHandlerContext ctx, boolean callChannelInactive) {
        CodecOutputList out = CodecOutputList.newInstance();
        try {
            channelInputClosed(ctx, out);
        } catch (DecoderException e) {
            throw e;
        } catch (Exception e) {
            throw new DecoderException(e);
        } finally {
            try {
                if (cumulation != null) {
                    cumulation.release();
                    cumulation = null;
                }
                int size = out.size();
                fireChannelRead(ctx, out, size);
                if (size > 0) {
                    // Something was read, call fireChannelReadComplete()
                    ctx.fireChannelReadComplete();
                }
                if (callChannelInactive) {
                    ctx.fireChannelInactive();
                }
            } finally {
                // Recycle in all cases
                out.recycle();
            }
        }
    }

Domain

Subdomains

Frequently Asked Questions

What does channelInputClosed() do?
channelInputClosed() is a function in the netty codebase, defined in codec-base/src/main/java/io/netty/handler/codec/ByteToMessageDecoder.java.
Where is channelInputClosed() defined?
channelInputClosed() is defined in codec-base/src/main/java/io/netty/handler/codec/ByteToMessageDecoder.java at line 406.
What does channelInputClosed() call?
channelInputClosed() calls 3 function(s): callDecode, decodeLast, fireChannelRead.
What calls channelInputClosed()?
channelInputClosed() is called by 2 function(s): channelInactive, userEventTriggered.

Analyze Your Own Codebase

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

Try Supermodel Free