@Override
    public boolean isReady() {
        return (!this.closed.get()
                && channel != null
                && channel.isOpen()
                && channel.isWritable()
                && channel.isActive());
    }
Set a channel

@param channel      the channel
@param addressInfo   the address of the channel
inlong-tubemq/tubemq-core/src/main/java/org/apache/inlong/tubemq/corerpc/netty/NettyClient.java