Package | Description |
---|---|
io.vertx.kafka.client.consumer |
Modifier and Type | Method and Description |
---|---|
KafkaConsumer<K,V> |
KafkaConsumer.assign(Set<TopicPartition> topicPartitions,
io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> completionHandler)
Manually assign a list of partition to this consumer.
|
KafkaConsumer<K,V> |
KafkaConsumer.assign(TopicPartition topicPartition,
io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> completionHandler)
Manually assign a partition to this consumer.
|
KafkaConsumer<K,V> |
KafkaConsumer.assignment(io.vertx.core.Handler<io.vertx.core.AsyncResult<Set<TopicPartition>>> handler)
Get the set of partitions currently assigned to this consumer.
|
KafkaConsumer<K,V> |
KafkaConsumer.batchHandler(io.vertx.core.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(io.vertx.core.Vertx vertx,
org.apache.kafka.clients.consumer.Consumer<K,V> consumer)
Create a new KafkaConsumer instance from a native
Consumer . |
static <K,V> KafkaConsumer<K,V> |
KafkaConsumer.create(io.vertx.core.Vertx vertx,
KafkaClientOptions options)
Create a new KafkaConsumer instance
|
static <K,V> KafkaConsumer<K,V> |
KafkaConsumer.create(io.vertx.core.Vertx vertx,
KafkaClientOptions options,
Class<K> keyType,
Class<V> valueType)
Create a new KafkaConsumer instance
|
static <K,V> KafkaConsumer<K,V> |
KafkaConsumer.create(io.vertx.core.Vertx vertx,
KafkaClientOptions options,
org.apache.kafka.common.serialization.Deserializer<K> keyDeserializer,
org.apache.kafka.common.serialization.Deserializer<V> valueDeserializer)
Create a new KafkaConsumer instance
|
static <K,V> KafkaConsumer<K,V> |
KafkaConsumer.create(io.vertx.core.Vertx vertx,
Map<String,String> config)
Create a new KafkaConsumer instance
|
static <K,V> KafkaConsumer<K,V> |
KafkaConsumer.create(io.vertx.core.Vertx vertx,
Map<String,String> config,
Class<K> keyType,
Class<V> valueType)
Create a new KafkaConsumer instance
|
static <K,V> KafkaConsumer<K,V> |
KafkaConsumer.create(io.vertx.core.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 instance
|
static <K,V> KafkaConsumer<K,V> |
KafkaConsumer.create(io.vertx.core.Vertx vertx,
Properties config)
Create a new KafkaConsumer instance
|
static <K,V> KafkaConsumer<K,V> |
KafkaConsumer.create(io.vertx.core.Vertx vertx,
Properties config,
Class<K> keyType,
Class<V> valueType)
Create a new KafkaConsumer instance
|
static <K,V> KafkaConsumer<K,V> |
KafkaConsumer.create(io.vertx.core.Vertx vertx,
Properties config,
org.apache.kafka.common.serialization.Deserializer<K> keyDeserializer,
org.apache.kafka.common.serialization.Deserializer<V> valueDeserializer)
Create a new KafkaConsumer instance
|
KafkaConsumer<K,V> |
KafkaConsumer.endHandler(io.vertx.core.Handler<Void> endHandler) |
KafkaConsumer<K,V> |
KafkaConsumer.exceptionHandler(io.vertx.core.Handler<Throwable> handler) |
KafkaConsumer<K,V> |
KafkaConsumer.fetch(long amount) |
KafkaConsumer<K,V> |
KafkaConsumer.handler(io.vertx.core.Handler<KafkaConsumerRecord<K,V>> handler) |
KafkaConsumer<K,V> |
KafkaConsumer.listTopics(io.vertx.core.Handler<io.vertx.core.AsyncResult<Map<String,List<PartitionInfo>>>> handler)
Get metadata about partitions for all topics that the user is authorized to view.
|
KafkaConsumer<K,V> |
KafkaConsumer.partitionsAssignedHandler(io.vertx.core.Handler<Set<TopicPartition>> handler)
Set the handler called when topic partitions are assigned to the consumer
|
KafkaConsumer<K,V> |
KafkaConsumer.partitionsFor(String topic,
io.vertx.core.Handler<io.vertx.core.AsyncResult<List<PartitionInfo>>> handler)
Get metadata about the partitions for a given topic.
|
KafkaConsumer<K,V> |
KafkaConsumer.partitionsRevokedHandler(io.vertx.core.Handler<Set<TopicPartition>> handler)
Set the handler called when topic partitions are revoked to the consumer
|
KafkaConsumer<K,V> |
KafkaConsumer.pause() |
KafkaConsumer<K,V> |
KafkaConsumer.pause(Set<TopicPartition> topicPartitions,
io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> completionHandler)
Suspend fetching from the requested partitions.
|
KafkaConsumer<K,V> |
KafkaConsumer.pause(TopicPartition topicPartition,
io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> completionHandler)
Suspend fetching from the requested partition.
|
KafkaConsumer<K,V> |
KafkaConsumer.pollTimeout(Duration timeout)
Sets the poll timeout for the underlying native Kafka Consumer.
|
KafkaConsumer<K,V> |
KafkaConsumer.resume() |
KafkaConsumer<K,V> |
KafkaConsumer.resume(Set<TopicPartition> topicPartitions,
io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> completionHandler)
Resume specified partitions which have been paused with pause.
|
KafkaConsumer<K,V> |
KafkaConsumer.resume(TopicPartition topicPartition,
io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> completionHandler)
Resume specified partition which have been paused with pause.
|
KafkaConsumer<K,V> |
KafkaConsumer.seek(TopicPartition topicPartition,
long offset,
io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> completionHandler)
Overrides the fetch offsets that the consumer will use on the next poll.
|
KafkaConsumer<K,V> |
KafkaConsumer.seekToBeginning(Set<TopicPartition> topicPartitions,
io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> completionHandler)
Seek to the first offset for each of the given partitions.
|
KafkaConsumer<K,V> |
KafkaConsumer.seekToBeginning(TopicPartition topicPartition,
io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> completionHandler)
Seek to the first offset for each of the given partition.
|
KafkaConsumer<K,V> |
KafkaConsumer.seekToEnd(Set<TopicPartition> topicPartitions,
io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> completionHandler)
Seek to the last offset for each of the given partitions.
|
KafkaConsumer<K,V> |
KafkaConsumer.seekToEnd(TopicPartition topicPartition,
io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> completionHandler)
Seek to the last offset for each of the given partition.
|
KafkaConsumer<K,V> |
KafkaConsumer.subscribe(Pattern pattern,
io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> completionHandler)
Subscribe to all topics matching specified pattern to get dynamically assigned partitions.
|
KafkaConsumer<K,V> |
KafkaConsumer.subscribe(Set<String> topics,
io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> completionHandler)
Subscribe to the given list of topics to get dynamically assigned partitions.
|
KafkaConsumer<K,V> |
KafkaConsumer.subscribe(String topic,
io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> completionHandler)
Subscribe to the given topic to get dynamically assigned partitions.
|
KafkaConsumer<K,V> |
KafkaConsumer.subscription(io.vertx.core.Handler<io.vertx.core.AsyncResult<Set<String>>> handler)
Get the current subscription.
|
KafkaConsumer<K,V> |
KafkaConsumer.unsubscribe(io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> completionHandler)
Unsubscribe from topics currently subscribed with subscribe.
|
Copyright © 2020 Eclipse. All rights reserved.