public int queued() {
        lock.lock();
        try {
            return this.waiters.size();
        } finally {
            lock.unlock();
        }
    }
The number of threads blocked waiting on memory
clients/src/main/java/org/apache/kafka/clients/producer/internals/BufferPool.java