/** * 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. * @param topicPartition the partition to get the end offset. * @param handler handler called on operation completed. The end offset for the given partition. */ public void endOffsets(TopicPartition topicPartition, Handler<AsyncResult<Long>> handler) { delegate.endOffsets(topicPartition, handler); }
/** * 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. * @param topicPartition the partition to get the end offset. * @param handler handler called on operation completed. The end offset for the given partition. */ public void endOffsets(TopicPartition topicPartition, Handler<AsyncResult<Long>> handler) { delegate.endOffsets(topicPartition, handler); }
public static void endOffsets(io.vertx.kafka.client.consumer.KafkaConsumer<Object, Object> j_receiver, java.util.Map<String, Object> topicPartition, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Long>> handler) { j_receiver.endOffsets(topicPartition != null ? new io.vertx.kafka.client.common.TopicPartition(io.vertx.core.impl.ConversionHelper.toJsonObject(topicPartition)) : null, handler != null ? new io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Long>>() { public void handle(io.vertx.core.AsyncResult<java.lang.Long> ar) { handler.handle(ar.map(event -> event)); } } : null); } }