vertx / io.vertx.kafka.client.consumer / KafkaReadStream / offsetsForTimes

offsetsForTimes

abstract fun offsetsForTimes(topicPartitionTimestamps: MutableMap<TopicPartition, Long>, handler: Handler<AsyncResult<MutableMap<TopicPartition, OffsetAndTimestamp>>>): Unit

Look up the offsets for the given partitions by timestamp.

Parameters

topicPartitionTimestamps - A map with pairs of (TopicPartition, Timestamp).

handler - handler called on operation completed

abstract fun offsetsForTimes(topicPartition: TopicPartition, timestamp: Long, handler: Handler<AsyncResult<OffsetAndTimestamp>>): Unit

* Look up the offset for the given partition by timestamp.

Parameters

topicPartition - Partition to query.

timestamp - Timestamp used to determine the offset.

handler - handler called on operation completed