Builds CommittableOffsetBatch from offsets sequence.
Builds CommittableOffsetBatch from offsets sequence. Be careful with sequence order. If there is more than once offset for a topic and partition in the sequence then the last one will remain.
Creates empty CommittableOffsetBatch.
Creates empty CommittableOffsetBatch. Can be used as neutral element in fold:
offsets.foldLeft(CommittableOffsetBatch.empty)(_ updated _)
Builds CommittableOffsetBatch list from offsets sequence by merging the offsets that have the same commit callback.
Builds CommittableOffsetBatch list from offsets sequence by merging the offsets that have the same commit callback. This will help when the committable offsets are from different consumers.
CommittableOffsetBatch.mergeByCommitCallback(offsets)