public void append(Record record) {
        appendWithOffset(record.offset(), isControlBatch, record.timestamp(), record.key(), record.value(), record.headers());
    }
Append a record at the next sequential offset.
@param record the record to add
clients/src/main/java/org/apache/kafka/common/record/MemoryRecordsBuilder.java