Uses of Interface
io.vertx.kafka.client.consumer.KafkaReadStream
Packages that use KafkaReadStream
-
Uses of KafkaReadStream in io.vertx.kafka.client.consumer
Methods in io.vertx.kafka.client.consumer that return KafkaReadStreamModifier and TypeMethodDescriptionKafkaReadStream.assign(Set<org.apache.kafka.common.TopicPartition> partitions, Handler<AsyncResult<Void>> completionHandler) Manually assign a set of partitions to this consumer.KafkaReadStream.assignment(Handler<AsyncResult<Set<org.apache.kafka.common.TopicPartition>>> handler) Get the set of partitions currently assigned to this consumer.KafkaConsumer.asStream()KafkaReadStream.batchHandler(Handler<org.apache.kafka.clients.consumer.ConsumerRecords<K, V>> handler) Set the handler that will be called when a new batch of records is returned from Kafka.static <K,V> KafkaReadStream<K, V> KafkaReadStream.create(Vertx vertx, KafkaClientOptions options) Create a new KafkaReadStream instancestatic <K,V> KafkaReadStream<K, V> KafkaReadStream.create(Vertx vertx, KafkaClientOptions options, Class<K> keyType, Class<V> valueType) Create a new KafkaReadStream instancestatic <K,V> KafkaReadStream<K, V> KafkaReadStream.create(Vertx vertx, KafkaClientOptions options, org.apache.kafka.common.serialization.Deserializer<K> keyDeserializer, org.apache.kafka.common.serialization.Deserializer<V> valueDeserializer) Create a new KafkaReadStream instancestatic <K,V> KafkaReadStream<K, V> Create a new KafkaReadStream instancestatic <K,V> KafkaReadStream<K, V> KafkaReadStream.create(Vertx vertx, Map<String, Object> config, Class<K> keyType, Class<V> valueType) Create a new KafkaReadStream instancestatic <K,V> KafkaReadStream<K, V> KafkaReadStream.create(Vertx vertx, Map<String, Object> config, org.apache.kafka.common.serialization.Deserializer<K> keyDeserializer, org.apache.kafka.common.serialization.Deserializer<V> valueDeserializer) Create a new KafkaReadStream instancestatic <K,V> KafkaReadStream<K, V> KafkaReadStream.create(Vertx vertx, Properties config) Create a new KafkaReadStream instancestatic <K,V> KafkaReadStream<K, V> KafkaReadStream.create(Vertx vertx, Properties config, Class<K> keyType, Class<V> valueType) Create a new KafkaReadStream instancestatic <K,V> KafkaReadStream<K, V> KafkaReadStream.create(Vertx vertx, Properties config, org.apache.kafka.common.serialization.Deserializer<K> keyDeserializer, org.apache.kafka.common.serialization.Deserializer<V> valueDeserializer) Create a new KafkaReadStream instancestatic <K,V> KafkaReadStream<K, V> Create a new KafkaReadStream instancestatic <K,V> KafkaReadStream<K, V> KafkaReadStream.create(Vertx vertx, org.apache.kafka.clients.consumer.Consumer<K, V> consumer, KafkaClientOptions options) Create a new KafkaReadStream instanceKafkaReadStream.endHandler(Handler<Void> endHandler) KafkaReadStream.exceptionHandler(Handler<Throwable> handler) KafkaReadStream.fetch(long amount) KafkaReadStream.listTopics(Handler<AsyncResult<Map<String, List<org.apache.kafka.common.PartitionInfo>>>> handler) Get metadata about partitions for all topics that the user is authorized to view.KafkaReadStream.partitionsAssignedHandler(Handler<Set<org.apache.kafka.common.TopicPartition>> handler) Set the handler called when topic partitions are assigned to the consumerKafkaReadStream.partitionsFor(String topic, Handler<AsyncResult<List<org.apache.kafka.common.PartitionInfo>>> handler) Get metadata about the partitions for a given topic.KafkaReadStream.partitionsRevokedHandler(Handler<Set<org.apache.kafka.common.TopicPartition>> handler) Set the handler called when topic partitions are revoked to the consumerKafkaReadStream.pause()KafkaReadStream.pause(Set<org.apache.kafka.common.TopicPartition> topicPartitions, Handler<AsyncResult<Void>> completionHandler) Suspend fetching from the requested partitions.KafkaReadStream.pollTimeout(Duration timeout) Sets the poll timeout for the underlying native Kafka Consumer.KafkaReadStream.resume()KafkaReadStream.resume(Set<org.apache.kafka.common.TopicPartition> topicPartitions, Handler<AsyncResult<Void>> completionHandler) Resume specified partitions which have been paused with pause.KafkaReadStream.seek(org.apache.kafka.common.TopicPartition topicPartition, long offset, Handler<AsyncResult<Void>> completionHandler) Overrides the fetch offsets that the consumer will use on the next poll.KafkaReadStream.seekToBeginning(Set<org.apache.kafka.common.TopicPartition> topicPartitions, Handler<AsyncResult<Void>> completionHandler) Seek to the first offset for each of the given partitions.KafkaReadStream.seekToEnd(Set<org.apache.kafka.common.TopicPartition> topicPartitions, Handler<AsyncResult<Void>> completionHandler) Seek to the last offset for each of the given partitions.KafkaReadStream.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.KafkaReadStream.subscription(Handler<AsyncResult<Set<String>>> handler) Get the current subscription.KafkaReadStream.unsubscribe(Handler<AsyncResult<Void>> completionHandler) Unsubscribe from topics currently subscribed with subscribe.