trait CommittableOffsetBatch extends Committable
For improved efficiency it is good to aggregate several CommittableOffset, using this class, before committing them. Start with the empty batch.
- Annotations
- @DoNotInherit()
- Source
- ConsumerMessage.scala
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- CommittableOffsetBatch
- Committable
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Abstract Value Members
- abstract def batchSize: Long
Get a number of processed messages this committable contains
Get a number of processed messages this committable contains
- Definition Classes
- Committable
- abstract def getOffsets: Map[GroupTopicPartition, Long]
Java API: Get current offset positions
- abstract def isEmpty: Boolean
- returns
true if the batch contains no commits.
- abstract def offsets: Map[GroupTopicPartition, Long]
Scala API: Get current offset positions
- abstract def updated(offset: Committable): CommittableOffsetBatch
Add/overwrite an offset position from another committable.
- abstract def commitJavadsl(): CompletionStage[Done]
- Definition Classes
- Committable
- Annotations
- @Deprecated @deprecated
- Deprecated
(Since version 2.0.0) use
Committer.flow
orCommitter.sink
instead of direct usage
- abstract def commitScaladsl(): Future[Done]
- Definition Classes
- Committable
- Annotations
- @deprecated
- Deprecated
(Since version 2.0.0) use
Committer.flow
orCommitter.sink
instead of direct usage