/** * Resume specified partition which have been paused with pause. * @param topicPartition topic partition from which resume fetching * @return current KafkaConsumer instance */ public io.vertx.rxjava.kafka.client.consumer.KafkaConsumer<K, V> resume(TopicPartition topicPartition) { delegate.resume(topicPartition); return this; }
/** * Resume specified partition which have been paused with pause. * @param topicPartition topic partition from which resume fetching * @return current KafkaConsumer instance */ public io.vertx.rxjava.kafka.client.consumer.KafkaConsumer<K, V> resume(TopicPartition topicPartition) { delegate.resume(topicPartition); return this; }
/** * Resume specified partitions which have been paused with pause. * @param topicPartitions topic partition from which resume fetching * @return current KafkaConsumer instance */ public io.vertx.rxjava.kafka.client.consumer.KafkaConsumer<K, V> resume(Set<TopicPartition> topicPartitions) { delegate.resume(topicPartitions); return this; }
/** * Resume specified partition which have been paused with pause. * @param topicPartition topic partition from which resume fetching * @param completionHandler handler called on operation completed * @return current KafkaConsumer instance */ public io.vertx.rxjava.kafka.client.consumer.KafkaConsumer<K, V> resume(TopicPartition topicPartition, Handler<AsyncResult<Void>> completionHandler) { delegate.resume(topicPartition, completionHandler); return this; }
/** * Resume specified partitions which have been paused with pause. * @param topicPartitions topic partition from which resume fetching * @param completionHandler handler called on operation completed * @return current KafkaConsumer instance */ public io.vertx.rxjava.kafka.client.consumer.KafkaConsumer<K, V> resume(Set<TopicPartition> topicPartitions, Handler<AsyncResult<Void>> completionHandler) { delegate.resume(topicPartitions, completionHandler); return this; }
/** * Resume specified partitions which have been paused with pause. * @param topicPartitions topic partition from which resume fetching * @param completionHandler handler called on operation completed * @return current KafkaConsumer instance */ public io.vertx.rxjava.kafka.client.consumer.KafkaConsumer<K, V> resume(Set<TopicPartition> topicPartitions, Handler<AsyncResult<Void>> completionHandler) { delegate.resume(topicPartitions, completionHandler); return this; }
/** * Resume the underlying Kafka consumer */ protected void resume() { this.consumer.resume(); }
/** * Resume specified partitions which have been paused with pause. * @param topicPartitions topic partition from which resume fetching * @return current KafkaConsumer instance */ public io.vertx.rxjava.kafka.client.consumer.KafkaConsumer<K, V> resume(Set<TopicPartition> topicPartitions) { delegate.resume(topicPartitions); return this; }
/** * Resume specified partition which have been paused with pause. * @param topicPartition topic partition from which resume fetching * @param completionHandler handler called on operation completed * @return current KafkaConsumer instance */ public io.vertx.rxjava.kafka.client.consumer.KafkaConsumer<K, V> resume(TopicPartition topicPartition, Handler<AsyncResult<Void>> completionHandler) { delegate.resume(topicPartition, completionHandler); return this; }
public io.vertx.rxjava.kafka.client.consumer.KafkaConsumer<K, V> resume() { delegate.resume(); return this; }
public io.vertx.rxjava.kafka.client.consumer.KafkaConsumer<K, V> resume() { delegate.resume(); return this; }
public static io.vertx.kafka.client.consumer.KafkaConsumer<java.lang.Object,java.lang.Object> resume(io.vertx.kafka.client.consumer.KafkaConsumer<Object, Object> j_receiver, java.util.Set<java.util.Map<String, Object>> topicPartitions, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Void>> completionHandler) { io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.resume(topicPartitions != null ? topicPartitions.stream().map(elt -> elt != null ? new io.vertx.kafka.client.common.TopicPartition(io.vertx.core.impl.ConversionHelper.toJsonObject(elt)) : null).collect(java.util.stream.Collectors.toSet()) : null, completionHandler != null ? new io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Void>>() { public void handle(io.vertx.core.AsyncResult<java.lang.Void> ar) { completionHandler.handle(ar.map(event -> io.vertx.core.impl.ConversionHelper.fromObject(event))); } } : null)); return j_receiver; } public static io.vertx.kafka.client.consumer.KafkaConsumer<java.lang.Object,java.lang.Object> partitionsRevokedHandler(io.vertx.kafka.client.consumer.KafkaConsumer<Object, Object> j_receiver, io.vertx.core.Handler<java.util.Set<java.util.Map<String, Object>>> handler) {
public static io.vertx.kafka.client.consumer.KafkaConsumer<java.lang.Object,java.lang.Object> resume(io.vertx.kafka.client.consumer.KafkaConsumer<Object, Object> j_receiver, java.util.Set<java.util.Map<String, Object>> topicPartitions) { io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.resume(topicPartitions != null ? topicPartitions.stream().map(elt -> elt != null ? new io.vertx.kafka.client.common.TopicPartition(io.vertx.core.impl.ConversionHelper.toJsonObject(elt)) : null).collect(java.util.stream.Collectors.toSet()) : null)); return j_receiver; } public static io.vertx.kafka.client.consumer.KafkaConsumer<java.lang.Object,java.lang.Object> resume(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.Void>> completionHandler) {
public static io.vertx.kafka.client.consumer.KafkaConsumer<java.lang.Object,java.lang.Object> resume(io.vertx.kafka.client.consumer.KafkaConsumer<Object, Object> j_receiver, java.util.Map<String, Object> topicPartition) { io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.resume(topicPartition != null ? new io.vertx.kafka.client.common.TopicPartition(io.vertx.core.impl.ConversionHelper.toJsonObject(topicPartition)) : null)); return j_receiver; } public static io.vertx.kafka.client.consumer.KafkaConsumer<java.lang.Object,java.lang.Object> resume(io.vertx.kafka.client.consumer.KafkaConsumer<Object, Object> j_receiver, java.util.Set<java.util.Map<String, Object>> topicPartitions) {
public static io.vertx.kafka.client.consumer.KafkaConsumer<java.lang.Object,java.lang.Object> resume(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.Void>> completionHandler) { io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.resume(topicPartition != null ? new io.vertx.kafka.client.common.TopicPartition(io.vertx.core.impl.ConversionHelper.toJsonObject(topicPartition)) : null, completionHandler != null ? new io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Void>>() { public void handle(io.vertx.core.AsyncResult<java.lang.Void> ar) { completionHandler.handle(ar.map(event -> io.vertx.core.impl.ConversionHelper.fromObject(event))); } } : null)); return j_receiver; } public static io.vertx.kafka.client.consumer.KafkaConsumer<java.lang.Object,java.lang.Object> resume(io.vertx.kafka.client.consumer.KafkaConsumer<Object, Object> j_receiver, java.util.Set<java.util.Map<String, Object>> topicPartitions, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Void>> completionHandler) {
private void startReceiving() { consumer.resume(); timerId = vertx.setTimer(timeout, t -> stopReceiving()); }
this.consumer.resume();
vertx.getOrCreateContext().runOnContext((t1)->{ consumerVertx.commit(); consumerVertx.resume(); sendNextBatch(consumer);
vertx.getOrCreateContext().runOnContext((t1)->{ consumerVertx.commit(); consumerVertx.resume(); sendNextBatch(consumer);