ProducerBatch¶
Creating Instance¶
ProducerBatch takes the following to be created:
-
TopicPartition - MemoryRecordsBuilder
- createdMs
-
isSplitBatchflag (default:false)
ProducerBatch is created when:
ProducerBatchis requested to createBatchOffAccumulatorForRecordRecordAccumulatoris requested to append a record
tryAppend¶
FutureRecordMetadata tryAppend(
long timestamp,
byte[] key,
byte[] value,
Header[] headers,
Callback callback,
long now)
tryAppend...FIXME
tryAppend is used when:
RecordAccumulatoris requested to append a record