Uses of Interface
io.vertx.kafka.client.consumer.KafkaConsumer
Packages that use KafkaConsumer
-
Uses of KafkaConsumer in io.vertx.kafka.client.consumer
Methods in io.vertx.kafka.client.consumer that return KafkaConsumerModifier and TypeMethodDescriptionKafkaConsumer.assign(TopicPartition topicPartition, Handler<AsyncResult<Void>> completionHandler) Manually assign a partition to this consumer.KafkaConsumer.assign(Set<TopicPartition> topicPartitions, Handler<AsyncResult<Void>> completionHandler) Manually assign a list of partition to this consumer.KafkaConsumer.assignment(Handler<AsyncResult<Set<TopicPartition>>> handler) Get the set of partitions currently assigned to this consumer.KafkaConsumer.batchHandler(Handler<KafkaConsumerRecords<K, V>> handler) Set the handler to be used when batches of messages are fetched from the Kafka server.static <K,V> KafkaConsumer<K, V> KafkaConsumer.create(Vertx vertx, KafkaClientOptions options) Create a new KafkaConsumer instancestatic <K,V> KafkaConsumer<K, V> KafkaConsumer.create(Vertx vertx, KafkaClientOptions options, Class<K> keyType, Class<V> valueType) Create a new KafkaConsumer instancestatic <K,V> KafkaConsumer<K, V> KafkaConsumer.create(Vertx vertx, KafkaClientOptions options, org.apache.kafka.common.serialization.Deserializer<K> keyDeserializer, org.apache.kafka.common.serialization.Deserializer<V> valueDeserializer) Create a new KafkaConsumer instancestatic <K,V> KafkaConsumer<K, V> Create a new KafkaConsumer instancestatic <K,V> KafkaConsumer<K, V> Create a new KafkaConsumer instancestatic <K,V> KafkaConsumer<K, V> KafkaConsumer.create(Vertx vertx, Map<String, String> config, org.apache.kafka.common.serialization.Deserializer<K> keyDeserializer, org.apache.kafka.common.serialization.Deserializer<V> valueDeserializer) Create a new KafkaConsumer instancestatic <K,V> KafkaConsumer<K, V> KafkaConsumer.create(Vertx vertx, Properties config) Create a new KafkaConsumer instancestatic <K,V> KafkaConsumer<K, V> KafkaConsumer.create(Vertx vertx, Properties config, Class<K> keyType, Class<V> valueType) Create a new KafkaConsumer instancestatic <K,V> KafkaConsumer<K, V> KafkaConsumer.create(Vertx vertx, Properties config, org.apache.kafka.common.serialization.Deserializer<K> keyDeserializer, org.apache.kafka.common.serialization.Deserializer<V> valueDeserializer) Create a new KafkaConsumer instancestatic <K,V> KafkaConsumer<K, V> Create a new KafkaConsumer instance from a nativeConsumer.static <K,V> KafkaConsumer<K, V> KafkaConsumer.create(Vertx vertx, org.apache.kafka.clients.consumer.Consumer<K, V> consumer, KafkaClientOptions options) Create a new KafkaConsumer instance from a nativeConsumer.KafkaConsumer.endHandler(Handler<Void> endHandler) KafkaConsumer.exceptionHandler(Handler<Throwable> handler) KafkaConsumer.fetch(long amount) KafkaConsumer.handler(Handler<KafkaConsumerRecord<K, V>> handler) KafkaConsumer.listTopics(Handler<AsyncResult<Map<String, List<PartitionInfo>>>> handler) Get metadata about partitions for all topics that the user is authorized to view.KafkaConsumer.partitionsAssignedHandler(Handler<Set<TopicPartition>> handler) Set the handler called when topic partitions are assigned to the consumerKafkaConsumer.partitionsFor(String topic, Handler<AsyncResult<List<PartitionInfo>>> handler) Get metadata about the partitions for a given topic.KafkaConsumer.partitionsRevokedHandler(Handler<Set<TopicPartition>> handler) Set the handler called when topic partitions are revoked to the consumerKafkaConsumer.pause()KafkaConsumer.pause(TopicPartition topicPartition, Handler<AsyncResult<Void>> completionHandler) Suspend fetching from the requested partition.KafkaConsumer.pause(Set<TopicPartition> topicPartitions, Handler<AsyncResult<Void>> completionHandler) Suspend fetching from the requested partitions.KafkaConsumer.pollTimeout(Duration timeout) Sets the poll timeout for the underlying native Kafka Consumer.KafkaConsumer.resume()KafkaConsumer.resume(TopicPartition topicPartition, Handler<AsyncResult<Void>> completionHandler) Resume specified partition which have been paused with pause.KafkaConsumer.resume(Set<TopicPartition> topicPartitions, Handler<AsyncResult<Void>> completionHandler) Resume specified partitions which have been paused with pause.KafkaConsumer.seek(TopicPartition topicPartition, long offset, Handler<AsyncResult<Void>> completionHandler) Overrides the fetch offsets that the consumer will use on the next poll.KafkaConsumer.seekToBeginning(TopicPartition topicPartition, Handler<AsyncResult<Void>> completionHandler) Seek to the first offset for each of the given partition.KafkaConsumer.seekToBeginning(Set<TopicPartition> topicPartitions, Handler<AsyncResult<Void>> completionHandler) Seek to the first offset for each of the given partitions.KafkaConsumer.seekToEnd(TopicPartition topicPartition, Handler<AsyncResult<Void>> completionHandler) Seek to the last offset for each of the given partition.KafkaConsumer.seekToEnd(Set<TopicPartition> topicPartitions, Handler<AsyncResult<Void>> completionHandler) Seek to the last offset for each of the given partitions.KafkaConsumer.subscribe(String topic, Handler<AsyncResult<Void>> completionHandler) Subscribe to the given topic to get dynamically assigned partitions.KafkaConsumer.subscribe(Pattern pattern, Handler<AsyncResult<Void>> completionHandler) Subscribe to all topics matching specified pattern to get dynamically assigned partitions.Subscribe to the given list of topics to get dynamically assigned partitions.KafkaConsumer.subscription(Handler<AsyncResult<Set<String>>> handler) Get the current subscription.KafkaConsumer.unsubscribe(Handler<AsyncResult<Void>> completionHandler) Unsubscribe from topics currently subscribed with subscribe.