@Override
    public void close() {
        lock.lock();
        try {
            closed = true;
            condition.signalAll();
        } finally {
            lock.unlock();
        }
    }
Closes the accumulator. This unblocks all the waiting threads.
group-coordinator/src/main/java/org/apache/kafka/coordinator/group/runtime/EventAccumulator.java