← ZIO Kafka docs

OffsetBatch

zio.kafka.consumer.OffsetBatch
See theOffsetBatch companion object
sealed trait OffsetBatch

Attributes

Companion
object
Source
OffsetBatch.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Abstract methods

def add(offset: Offset): OffsetBatch

Attributes

Source
OffsetBatch.scala
def commit: Task[Unit]

Commit the next offsets.

Commit the next offsets.

Attributes

Source
OffsetBatch.scala
def consumerGroupMetadata: Option[ConsumerGroupMetadata]

Attributes

Source
OffsetBatch.scala
def merge(offsets: OffsetBatch): OffsetBatch

Attributes

Source
OffsetBatch.scala
def nextOffsets: Map[TopicPartition, OffsetAndMetadata]

The committable next offsets.

The committable next offsets.

Attributes

Source
OffsetBatch.scala

Concrete methods

def commitOrRetry[R](policy: Schedule[R, Throwable, Any]): RIO[R, Unit]

Attempts to commit and retries according to the given policy when the commit fails with a RetriableCommitFailedException

Attempts to commit and retries according to the given policy when the commit fails with a RetriableCommitFailedException

Attributes

Source
OffsetBatch.scala