trait KafkaOffsetsV2[F[_]] extends KafkaOffsets[F]
- Alphabetic
- By Inheritance
- KafkaOffsetsV2
- KafkaOffsets
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Abstract Value Members
- abstract def committed(partitions: Set[TopicPartition], timeout: FiniteDuration): F[Map[TopicPartition, OffsetAndMetadata]]
Returns the last committed offsets for the given partitions.
Returns the last committed offsets for the given partitions.
Timeout is determined by
default.api.timeout.ms
, which is set using ConsumerSettings#withDefaultApiTimeout. - abstract def committed(partitions: Set[TopicPartition]): F[Map[TopicPartition, OffsetAndMetadata]]
Returns the last committed offsets for the given partitions.
- abstract 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.
- Definition Classes
- KafkaOffsets
- abstract def position(partition: TopicPartition): F[Long]
Returns the offset of the next record that will be fetched.
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.- Definition Classes
- KafkaOffsets
- abstract def seek(partition: TopicPartition, offset: Long): F[Unit]
Overrides the fetch offsets that the consumer will use when reading the next record.
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.
- Definition Classes
- KafkaOffsets
- abstract def seekToBeginning[G[_]](partitions: G[TopicPartition])(implicit arg0: Foldable[G]): F[Unit]
Seeks to the first offset for each of the specified partitions.
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
orposition
.- Definition Classes
- KafkaOffsets
- abstract def seekToEnd[G[_]](partitions: G[TopicPartition])(implicit arg0: Foldable[G]): F[Unit]
Seeks to the last offset for each of the specified partitions.
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
orposition
.- Definition Classes
- KafkaOffsets
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def seekToBeginning: F[Unit]
Seeks to the first offset for each currently assigned partition.
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
orposition
.- Definition Classes
- KafkaOffsets
- def seekToEnd: F[Unit]
Seeks to the last offset for each currently assigned partition.
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
orposition
.- Definition Classes
- KafkaOffsets
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()