The CommittableOffset as a CommittableOffsetBatch.
Commits the offsetAndMetadata for the topicPartition to Kafka.
Commits the offsetAndMetadata for the topicPartition to Kafka. Note that offsets are normally committed in batches for performance reasons. Prefer to use sinks like commitBatch or commitBatchWithin, or CommittableOffsetBatch for that reason.
The offset and metadata for the topicPartition, which can be committed using commit.
The topicPartition and offsetAndMetadata as a Map
.
The topicPartition and offsetAndMetadata as a Map
.
This is provided for convenience and is always guaranteed to
be equivalent to the following.
Map(topicPartition -> offsetAndMetadata)
The topic and partition for which offsetAndMetadata can be committed using commit.
CommittableOffset represents an offsetAndMetadata for a topicPartition, along with the ability to commit that offset to Kafka with commit. Note that offsets are normally committed in batches for performance reasons. Sinks like commitBatch and commitBatchWithin use CommittableOffsetBatch to commit the offsets in batches.
While normally not necessary, CommittableOffset#apply can be used to create a new instance.