@Override
    public void channelInactive(ChannelHandlerContext ctx) throws Exception {
        ctx.fireChannelInactive();
        if (logger.isDebugEnabled()) {
            logger.debug("ClientHandler({}) channelDisconnected {}",
                    tcpClientMgr.getSenderId(), ctx.channel());
        }
        try {
            tcpClientMgr.notifyChannelDisconnected(ctx.channel().toString());
        } catch (Throwable ex) {
            if (thrownCnt.shouldPrint()) {
                logger.warn("ClientHandler({}) channelInactive throw exception",
                        tcpClientMgr.getSenderId(), ex);
            }
        }
    }
TCP client handler class

Used to process TCP response message.
inlong-sdk/dataproxy-sdk/src/main/java/org/apache/inlong/sdk/dataproxy/network/tcp/ClientHandler.java