Carries offsets from Kafka for aggregation and committing by the scaladsl.Committer or javadsl.Committer.
Carries offsets from Kafka for aggregation and committing by the scaladsl.Committer or javadsl.Committer.
Committable
may be a single offset in CommittableOffset or CommittableOffsetMetadata,
or a number of offsets aggregated as CommittableOffsetBatch.
Output element of committableSource
.
Output element of committableSource
.
The offset can be committed via the included CommittableOffset.
Included in CommittableMessage.
Included in CommittableMessage. Makes it possible to commit an offset with the Committable#commitScaladsl / Committable#commitJavadsl method or aggregate several offsets in a batch before committing.
Note that the offset position that is committed to Kafka will automatically
be one more than the offset
of the message, because the committed offset
should be the next message your application will consume,
i.e. lastProcessedMessageOffset + 1.
For improved efficiency it is good to aggregate several CommittableOffset, using this class, before committing them.
For improved efficiency it is good to aggregate several CommittableOffset, using this class, before committing them. Start with the empty batch.
groupId, topic, partition key for an offset position.
Offset position for a groupId, topic, partition.
Offset position and metadata for a groupId, topic, partition.
Output element of transactionalSource
.
Output element of transactionalSource
.
The offset is automatically committed as by the Producer
Java API: Create an offset batch out of a list of offsets.
Java API: Create an offset batch out of a first offsets.
Classes that are used in both javadsl.Consumer and scaladsl.Consumer.