t

fs2.kafka.consumer

KafkaOffsetsV2

trait KafkaOffsetsV2[F[_]] extends KafkaOffsets[F]

Source
KafkaOffsetsV2.scala
Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. KafkaOffsetsV2
  2. KafkaOffsets
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Abstract Value Members

  1. 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.

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

    Returns the last committed offsets for the given partitions.

  3. 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
  4. 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
  5. 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
  6. 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 or position.

    Definition Classes
    KafkaOffsets
  7. 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 or position.

    Definition Classes
    KafkaOffsets

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  9. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  10. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  11. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  12. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  14. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  15. 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 or position.

    Definition Classes
    KafkaOffsets
  16. 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 or position.

    Definition Classes
    KafkaOffsets
  17. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  18. def toString(): String
    Definition Classes
    AnyRef → Any
  19. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  20. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  21. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from KafkaOffsets[F]

Inherited from AnyRef

Inherited from Any

Ungrouped