vertx / io.vertx.kafka.client.consumer / KafkaConsumer / endOffsets

endOffsets

abstract fun endOffsets(topicPartitions: MutableSet<TopicPartition>, handler: Handler<AsyncResult<MutableMap<TopicPartition, Long>>>): Unit

Get the last offset for the given partitions. The last offset of a partition is the offset of the upcoming message, i.e. the offset of the last available message + 1.

Parameters

topicPartitions - the partitions to get the end offsets.

handler - handler called on operation completed. The end offsets for the given partitions.

abstract fun endOffsets(topicPartition: TopicPartition, handler: Handler<AsyncResult<Long>>): Unit

Get the last offset for the given partition. The last offset of a partition is the offset of the upcoming message, i.e. the offset of the last available message + 1.

Parameters

topicPartition - the partition to get the end offset.

handler - handler called on operation completed. The end offset for the given partition.