public boolean hasBytesBuffered() {
        return transportLayer.hasBytesBuffered();
    }
@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