KafkaOffsetsV2

trait KafkaOffsetsV2[F[_]] extends KafkaOffsets[F]
trait KafkaOffsets[F]
class Object
trait Matchable
class Any
class KafkaConsumer[F, K, V]

Value members

Abstract methods

def committed(partitions: Set[TopicPartition]): F[Map[TopicPartition, OffsetAndMetadata]]

Returns the last committed offsets for the given partitions.

Returns the last committed offsets for the given partitions.

Source:
KafkaOffsetsV2.scala
def committed(partitions: Set[TopicPartition], timeout: FiniteDuration): F[Map[TopicPartition, OffsetAndMetadata]]

Returns the last committed offsets for the given partitions.

Timeout is determined by default.api.timeout.ms, which is set using ConsumerSettings#withDefaultApiTimeout.

Returns the last committed offsets for the given partitions.

Timeout is determined by default.api.timeout.ms, which is set using ConsumerSettings#withDefaultApiTimeout.

Source:
KafkaOffsetsV2.scala

Inherited methods

def position(partition: TopicPartition, timeout: FiniteDuration): F[Long]

Returns the offset of the next record that will be fetched.

Returns the offset of the next record that will be fetched.

Inherited from:
KafkaOffsets
Source:
KafkaOffsets.scala
def position(partition: TopicPartition): F[Long]

Returns the offset of the next record that will be fetched.

Timeout is determined by default.api.timeout.ms, which is set using ConsumerSettings#withDefaultApiTimeout.

Returns the offset of the next record that will be fetched.

Timeout is determined by default.api.timeout.ms, which is set using ConsumerSettings#withDefaultApiTimeout.

Inherited from:
KafkaOffsets
Source:
KafkaOffsets.scala
def seek(partition: TopicPartition, offset: Long): F[Unit]

Overrides the fetch offsets that the consumer will use when reading the next record. If this API is invoked for the same partition more than once, the latest offset will be used. Note that you may lose data if this API is arbitrarily used in the middle of consumption to reset the fetch offsets.

Overrides the fetch offsets that the consumer will use when reading the next record. If this API is invoked for the same partition more than once, the latest offset will be used. Note that you may lose data if this API is arbitrarily used in the middle of consumption to reset the fetch offsets.

Inherited from:
KafkaOffsets
Source:
KafkaOffsets.scala
def seekToBeginning[G[_] : Foldable](partitions: G[TopicPartition]): F[Unit]

Seeks to the first offset for each of the specified partitions. If no partitions are provided, seeks to the first offset for all currently assigned partitions.

Note that this seek evaluates lazily, and only on the next call to poll or position.

Seeks to the first offset for each of the specified partitions. If no partitions are provided, seeks to the first offset for all currently assigned partitions.

Note that this seek evaluates lazily, and only on the next call to poll or position.

Inherited from:
KafkaOffsets
Source:
KafkaOffsets.scala

Seeks to the first offset for each currently assigned partition. This is equivalent to using seekToBeginning with an empty set of partitions.

Note that this seek evaluates lazily, and only on the next call to poll or position.

Seeks to the first offset for each currently assigned partition. This is equivalent to using seekToBeginning with an empty set of partitions.

Note that this seek evaluates lazily, and only on the next call to poll or position.

Inherited from:
KafkaOffsets
Source:
KafkaOffsets.scala
def seekToEnd[G[_] : Foldable](partitions: G[TopicPartition]): F[Unit]

Seeks to the last offset for each of the specified partitions. If no partitions are provided, seeks to the last offset for all currently assigned partitions.

Note that this seek evaluates lazily, and only on the next call to poll or position.

Seeks to the last offset for each of the specified partitions. If no partitions are provided, seeks to the last offset for all currently assigned partitions.

Note that this seek evaluates lazily, and only on the next call to poll or position.

Inherited from:
KafkaOffsets
Source:
KafkaOffsets.scala
def seekToEnd: F[Unit]

Seeks to the last offset for each currently assigned partition. This is equivalent to using seekToEnd with an empty set of partitions.

Note that this seek evaluates lazily, and only on the next call to poll or position.

Seeks to the last offset for each currently assigned partition. This is equivalent to using seekToEnd with an empty set of partitions.

Note that this seek evaluates lazily, and only on the next call to poll or position.

Inherited from:
KafkaOffsets
Source:
KafkaOffsets.scala