@Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }
        KafkaChannel that = (KafkaChannel) o;
        return id.equals(that.id);
    }
@return true if underlying transport has bytes remaining to be read from any underlying intermediate buffers.
clients/src/main/java/org/apache/kafka/common/network/KafkaChannel.java