@Override
    public boolean hasPendingWrites() {
        return netWriteBuffer.hasRemaining();
    }
returns true if there are any pending contents in netWriteBuffer
clients/src/main/java/org/apache/kafka/common/network/SslTransportLayer.java