KafkaOffsets
Value members
Methods
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.
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.
Seeks to the first offset for each currently assigned partition.
This is equivalent to using
of partitions.
Note that this seek evaluates lazily, and only on the next call
to
This is equivalent to using
seekToBeginning
with an empty setof partitions.
Note that this seek evaluates lazily, and only on the next call
to
poll
or position
. def seekToBeginning[G <: ([_$2] =>> Any)](partitions: G[TopicPartition])(evidence$1: Foldable[G]): 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
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 last offset for each currently assigned partition.
This is equivalent to using
partitions.
Note that this seek evaluates lazily, and only on the next call
to
This is equivalent to using
seekToEnd
with an empty set ofpartitions.
Note that this seek evaluates lazily, and only on the next call
to
poll
or position
. def seekToEnd[G <: ([_$3] =>> Any)](partitions: G[TopicPartition])(evidence$2: Foldable[G]): 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
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
.Returns the offset of the next record that will be fetched.
Timeout is determined by
is set using ConsumerSettings#withDefaultApiTimeout.
Timeout is determined by
default.api.timeout.ms
, whichis set using ConsumerSettings#withDefaultApiTimeout.