public boolean isActive() {
        if (this.conStatus.get() != CLIENT_STATUS_READY) {
            return false;
        }
        rw.readLock().lock();
        try {
            return ((this.conStatus.get() == CLIENT_STATUS_READY)
                    && channel != null && channel.isOpen() && channel.isActive());
        } finally {
            rw.readLock().unlock();
        }
    }
TCP Netty client class

Used to manage TCP netty client, including connection, closing, keep-alive, sending status check, etc.
inlong-sdk/dataproxy-sdk/src/main/java/org/apache/inlong/sdk/dataproxy/network/tcp/TcpNettyClient.java