public void close() {
        this.closed = true;
        this.free.close();
    }
Close this accumulator and force all the record buffers to be drained
clients/src/main/java/org/apache/kafka/clients/producer/internals/RecordAccumulator.java