KafkaTopicsV2

fs2.kafka.consumer.KafkaTopicsV2
trait KafkaTopicsV2[F[_]] extends KafkaTopics[F]

Attributes

Source
KafkaTopicsV2.scala
Graph
Supertypes
trait KafkaTopics[F]
class Object
trait Matchable
class Any
Known subtypes
class KafkaConsumer[F, K, V]

Members list

Value members

Abstract methods

def listTopics: F[Map[String, List[PartitionInfo]]]

Get metadata about partitions for all topics that the user is authorized to view.

Get metadata about partitions for all topics that the user is authorized to view. This method will issue a remote call to the server.

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

Attributes

Source
KafkaTopicsV2.scala
def listTopics(timeout: FiniteDuration): F[Map[String, List[PartitionInfo]]]

Get metadata about partitions for all topics that the user is authorized to view.

Get metadata about partitions for all topics that the user is authorized to view. This method will issue a remote call to the server.

Attributes

Source
KafkaTopicsV2.scala
def offsetsForTimes(timestampsToSearch: Map[TopicPartition, Long]): F[Map[TopicPartition, Option[OffsetAndTimestamp]]]

Look up the offsets for the given partitions by timestamp.

Look up the offsets for the given partitions by timestamp. The returned offset for each partition is the earliest offset whose timestamp is greater than or equal to the given timestamp in the corresponding partition.

The consumer does not have to be assigned the partitions. If no messages exist yet for a partition, it will not exist in the returned map.

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

Attributes

Source
KafkaTopicsV2.scala
def offsetsForTimes(timestampsToSearch: Map[TopicPartition, Long], timeout: FiniteDuration): F[Map[TopicPartition, Option[OffsetAndTimestamp]]]

Look up the offsets for the given partitions by timestamp.

Look up the offsets for the given partitions by timestamp. The returned offset for each partition is the earliest offset whose timestamp is greater than or equal to the given timestamp in the corresponding partition.

The consumer does not have to be assigned the partitions. If no messages exist yet for a partition, it will not exist in the returned map.

Attributes

Source
KafkaTopicsV2.scala

Inherited methods

def beginningOffsets(partitions: Set[TopicPartition], timeout: FiniteDuration): F[Map[TopicPartition, Long]]

Returns the first offset for the specified partitions.

Returns the first offset for the specified partitions.

Attributes

Inherited from:
KafkaTopics
Source
KafkaTopics.scala
def beginningOffsets(partitions: Set[TopicPartition]): F[Map[TopicPartition, Long]]

Returns the first offset for the specified partitions.

Returns the first offset for the specified partitions.

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

Attributes

Inherited from:
KafkaTopics
Source
KafkaTopics.scala
def endOffsets(partitions: Set[TopicPartition], timeout: FiniteDuration): F[Map[TopicPartition, Long]]

Returns the last offset for the specified partitions.

Returns the last offset for the specified partitions.

Attributes

Inherited from:
KafkaTopics
Source
KafkaTopics.scala
def endOffsets(partitions: Set[TopicPartition]): F[Map[TopicPartition, Long]]

Returns the last offset for the specified partitions.

Returns the last offset for the specified partitions.

Timeout is determined by request.timeout.ms, which is set using ConsumerSettings#withRequestTimeout.

Attributes

Inherited from:
KafkaTopics
Source
KafkaTopics.scala
def partitionsFor(topic: String, timeout: FiniteDuration): F[List[PartitionInfo]]

Returns the partitions for the specified topic.

Returns the partitions for the specified topic.

Attributes

Inherited from:
KafkaTopics
Source
KafkaTopics.scala
def partitionsFor(topic: String): F[List[PartitionInfo]]

Returns the partitions for the specified topic.

Returns the partitions for the specified topic.

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

Attributes

Inherited from:
KafkaTopics
Source
KafkaTopics.scala