Uses of Class
io.vertx.kafka.client.common.TopicPartition
Packages that use TopicPartition
Package
Description
-
Uses of TopicPartition in io.vertx.kafka.admin
Methods in io.vertx.kafka.admin that return types with arguments of type TopicPartitionModifier and TypeMethodDescriptionio.vertx.core.Future<Map<TopicPartition,org.apache.kafka.clients.admin.DeletedRecords>> KafkaAdminClient.deleteRecords(Map<TopicPartition, org.apache.kafka.clients.admin.RecordsToDelete> recordsToDelete) LikeKafkaAdminClient.deleteRecords(Map, Handler)but returns aFutureof the asynchronous resultMemberAssignment.getTopicPartitions()default io.vertx.core.Future<Map<TopicPartition,OffsetAndMetadata>> KafkaAdminClient.listConsumerGroupOffsets(String groupId) LikeKafkaAdminClient.listConsumerGroupOffsets(String, Handler)but returns aFutureof the asynchronous resultio.vertx.core.Future<Map<TopicPartition,OffsetAndMetadata>> KafkaAdminClient.listConsumerGroupOffsets(String groupId, ListConsumerGroupOffsetsOptions options) LikeKafkaAdminClient.listConsumerGroupOffsets(String, ListConsumerGroupOffsetsOptions, Handler)but returns aFutureof the asynchronous resultio.vertx.core.Future<Map<TopicPartition,ListOffsetsResultInfo>> KafkaAdminClient.listOffsets(Map<TopicPartition, OffsetSpec> topicPartitionOffsets) Likebut returns ainvalid @link
#listOffsets(Map<TopicPartition, OffsetSpec>, Handler)Futureof the asynchronous resultListConsumerGroupOffsetsOptions.topicPartitions()Returns a list of topic partitions to add as part of the result.Method parameters in io.vertx.kafka.admin with type arguments of type TopicPartitionModifier and TypeMethodDescriptionio.vertx.core.Future<Void>KafkaAdminClient.alterConsumerGroupOffsets(String groupId, Map<TopicPartition, OffsetAndMetadata> offsets) LikeKafkaAdminClient.alterConsumerGroupOffsets(String, Map, Handler)but returns aFutureof the asynchronous resultvoidKafkaAdminClient.alterConsumerGroupOffsets(String groupId, Map<TopicPartition, OffsetAndMetadata> offsets, io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> completionHandler) Alter committed offsets for a set of partitions in a consumer group.io.vertx.core.Future<Void>KafkaAdminClient.deleteConsumerGroupOffsets(String groupId, Set<TopicPartition> partitions) LikeKafkaAdminClient.deleteConsumerGroupOffsets(String, Set, Handler)but returns aFutureof the asynchronous resultvoidKafkaAdminClient.deleteConsumerGroupOffsets(String groupId, Set<TopicPartition> partitions, io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> completionHandler) Delete committed offsets for a set of partitions in a consumer group.io.vertx.core.Future<Map<TopicPartition,org.apache.kafka.clients.admin.DeletedRecords>> KafkaAdminClient.deleteRecords(Map<TopicPartition, org.apache.kafka.clients.admin.RecordsToDelete> recordsToDelete) LikeKafkaAdminClient.deleteRecords(Map, Handler)but returns aFutureof the asynchronous resultvoidKafkaAdminClient.deleteRecords(Map<TopicPartition, org.apache.kafka.clients.admin.RecordsToDelete> recordsToDelete, io.vertx.core.Handler<io.vertx.core.AsyncResult<Map<TopicPartition, org.apache.kafka.clients.admin.DeletedRecords>>> completionHandler) Delete records from a topic partition.voidKafkaAdminClient.deleteRecords(Map<TopicPartition, org.apache.kafka.clients.admin.RecordsToDelete> recordsToDelete, io.vertx.core.Handler<io.vertx.core.AsyncResult<Map<TopicPartition, org.apache.kafka.clients.admin.DeletedRecords>>> completionHandler) Delete records from a topic partition.default voidKafkaAdminClient.listConsumerGroupOffsets(String groupId, io.vertx.core.Handler<io.vertx.core.AsyncResult<Map<TopicPartition, OffsetAndMetadata>>> completionHandler) List the consumer group offsets available in the cluster.voidKafkaAdminClient.listConsumerGroupOffsets(String groupId, ListConsumerGroupOffsetsOptions options, io.vertx.core.Handler<io.vertx.core.AsyncResult<Map<TopicPartition, OffsetAndMetadata>>> completionHandler) List the consumer group offsets available in the cluster.io.vertx.core.Future<Map<TopicPartition,ListOffsetsResultInfo>> KafkaAdminClient.listOffsets(Map<TopicPartition, OffsetSpec> topicPartitionOffsets) Likebut returns ainvalid @link
#listOffsets(Map<TopicPartition, OffsetSpec>, Handler)Futureof the asynchronous resultvoidKafkaAdminClient.listOffsets(Map<TopicPartition, OffsetSpec> topicPartitionOffsets, io.vertx.core.Handler<io.vertx.core.AsyncResult<Map<TopicPartition, ListOffsetsResultInfo>>> completionHandler) List the offsets available for a set of partitions.voidKafkaAdminClient.listOffsets(Map<TopicPartition, OffsetSpec> topicPartitionOffsets, io.vertx.core.Handler<io.vertx.core.AsyncResult<Map<TopicPartition, ListOffsetsResultInfo>>> completionHandler) List the offsets available for a set of partitions.MemberAssignment.setTopicPartitions(Set<TopicPartition> topicPartitions) Set the list of topic partitionsListConsumerGroupOffsetsOptions.topicPartitions(List<TopicPartition> topicPartitions) Set the topic partitions to list as part of the result.Constructor parameters in io.vertx.kafka.admin with type arguments of type TopicPartition -
Uses of TopicPartition in io.vertx.kafka.client.common
Methods in io.vertx.kafka.client.common that return TopicPartitionModifier and TypeMethodDescriptionTopicPartition.setPartition(int partition) Set the partition numberSet the topic nameConstructors in io.vertx.kafka.client.common with parameters of type TopicPartition -
Uses of TopicPartition in io.vertx.kafka.client.consumer
Methods in io.vertx.kafka.client.consumer that return types with arguments of type TopicPartitionModifier and TypeMethodDescriptionio.vertx.core.Future<Set<TopicPartition>>KafkaConsumer.assignment()LikeKafkaConsumer.assignment(Handler)but returns aFutureof the asynchronous resultio.vertx.core.Future<Map<TopicPartition,Long>> KafkaConsumer.beginningOffsets(Set<TopicPartition> topicPartitions) LikeKafkaConsumer.beginningOffsets(Set, Handler)but returns aFutureof the asynchronous resultio.vertx.core.Future<Map<TopicPartition,OffsetAndMetadata>> KafkaConsumer.commit(Map<TopicPartition, OffsetAndMetadata> offsets) Commit the specified offsets for the specified list of topics and partitions to Kafka.io.vertx.core.Future<Map<TopicPartition,Long>> KafkaConsumer.endOffsets(Set<TopicPartition> topicPartitions) LikeKafkaConsumer.endOffsets(Set, Handler)but returns aFutureof the asynchronous resultio.vertx.core.Future<Map<TopicPartition,OffsetAndTimestamp>> KafkaConsumer.offsetsForTimes(Map<TopicPartition, Long> topicPartitionTimestamps) LikeKafkaConsumer.offsetsForTimes(Map, Handler)but returns aFutureof the asynchronous resultio.vertx.core.Future<Set<TopicPartition>>KafkaConsumer.paused()LikeKafkaConsumer.paused(Handler)but returns aFutureof the asynchronous resultMethods in io.vertx.kafka.client.consumer with parameters of type TopicPartitionModifier and TypeMethodDescriptionio.vertx.core.Future<Void>KafkaConsumer.assign(TopicPartition topicPartition) Manually assign a partition to this consumer.KafkaConsumer.assign(TopicPartition topicPartition, io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> completionHandler) Manually assign a partition to this consumer.io.vertx.core.Future<Long>KafkaConsumer.beginningOffsets(TopicPartition topicPartition) LikeKafkaConsumer.beginningOffsets(TopicPartition, Handler)but returns aFutureof the asynchronous resultvoidKafkaConsumer.beginningOffsets(TopicPartition topicPartition, io.vertx.core.Handler<io.vertx.core.AsyncResult<Long>> handler) Get the first offset for the given partitions.io.vertx.core.Future<OffsetAndMetadata>KafkaConsumer.committed(TopicPartition topicPartition) LikeKafkaConsumer.committed(TopicPartition, Handler)but returns aFutureof the asynchronous resultvoidKafkaConsumer.committed(TopicPartition topicPartition, io.vertx.core.Handler<io.vertx.core.AsyncResult<OffsetAndMetadata>> handler) Get the last committed offset for the given partition (whether the commit happened by this process or another).io.vertx.core.Future<Long>KafkaConsumer.endOffsets(TopicPartition topicPartition) LikeKafkaConsumer.endOffsets(TopicPartition, Handler)but returns aFutureof the asynchronous resultvoidKafkaConsumer.endOffsets(TopicPartition topicPartition, io.vertx.core.Handler<io.vertx.core.AsyncResult<Long>> handler) Get the last offset for the given partition.io.vertx.core.Future<OffsetAndTimestamp>KafkaConsumer.offsetsForTimes(TopicPartition topicPartition, Long timestamp) LikeKafkaConsumer.offsetsForTimes(TopicPartition, Long, Handler)but returns aFutureof the asynchronous resultvoidKafkaConsumer.offsetsForTimes(TopicPartition topicPartition, Long timestamp, io.vertx.core.Handler<io.vertx.core.AsyncResult<OffsetAndTimestamp>> handler) Look up the offset for the given partition by timestamp.io.vertx.core.Future<Void>KafkaConsumer.pause(TopicPartition topicPartition) Suspend fetching from the requested partition.KafkaConsumer.pause(TopicPartition topicPartition, io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> completionHandler) Suspend fetching from the requested partition.io.vertx.core.Future<Long>KafkaConsumer.position(TopicPartition partition) LikeKafkaConsumer.position(TopicPartition, Handler)but returns aFutureof the asynchronous resultvoidKafkaConsumer.position(TopicPartition partition, io.vertx.core.Handler<io.vertx.core.AsyncResult<Long>> handler) Get the offset of the next record that will be fetched (if a record with that offset exists).io.vertx.core.Future<Void>KafkaConsumer.resume(TopicPartition topicPartition) Resume specified partition which have been paused with pause.KafkaConsumer.resume(TopicPartition topicPartition, io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> completionHandler) Resume specified partition which have been paused with pause.io.vertx.core.Future<Void>KafkaConsumer.seek(TopicPartition topicPartition, long offset) Overrides the fetch offsets that the consumer will use on the next poll.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.io.vertx.core.Future<Void>KafkaConsumer.seekToBeginning(TopicPartition topicPartition) Seek to the first offset for each of the given partition.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.io.vertx.core.Future<Void>KafkaConsumer.seekToEnd(TopicPartition topicPartition) Seek to the last offset for each of the given partition.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.Method parameters in io.vertx.kafka.client.consumer with type arguments of type TopicPartitionModifier and TypeMethodDescriptionio.vertx.core.Future<Void>KafkaConsumer.assign(Set<TopicPartition> topicPartitions) Manually assign a list of partition to this consumer.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.assignment(io.vertx.core.Handler<io.vertx.core.AsyncResult<Set<TopicPartition>>> handler) Get the set of partitions currently assigned to this consumer.io.vertx.core.Future<Map<TopicPartition,Long>> KafkaConsumer.beginningOffsets(Set<TopicPartition> topicPartitions) LikeKafkaConsumer.beginningOffsets(Set, Handler)but returns aFutureof the asynchronous resultvoidKafkaConsumer.beginningOffsets(Set<TopicPartition> topicPartitions, io.vertx.core.Handler<io.vertx.core.AsyncResult<Map<TopicPartition, Long>>> handler) Get the first offset for the given partitions.voidKafkaConsumer.beginningOffsets(Set<TopicPartition> topicPartitions, io.vertx.core.Handler<io.vertx.core.AsyncResult<Map<TopicPartition, Long>>> handler) Get the first offset for the given partitions.io.vertx.core.Future<Map<TopicPartition,OffsetAndMetadata>> KafkaConsumer.commit(Map<TopicPartition, OffsetAndMetadata> offsets) Commit the specified offsets for the specified list of topics and partitions to Kafka.voidKafkaConsumer.commit(Map<TopicPartition, OffsetAndMetadata> offsets, io.vertx.core.Handler<io.vertx.core.AsyncResult<Map<TopicPartition, OffsetAndMetadata>>> completionHandler) Commit the specified offsets for the specified list of topics and partitions to Kafka.voidKafkaConsumer.commit(Map<TopicPartition, OffsetAndMetadata> offsets, io.vertx.core.Handler<io.vertx.core.AsyncResult<Map<TopicPartition, OffsetAndMetadata>>> completionHandler) Commit the specified offsets for the specified list of topics and partitions to Kafka.io.vertx.core.Future<Map<TopicPartition,Long>> KafkaConsumer.endOffsets(Set<TopicPartition> topicPartitions) LikeKafkaConsumer.endOffsets(Set, Handler)but returns aFutureof the asynchronous resultvoidKafkaConsumer.endOffsets(Set<TopicPartition> topicPartitions, io.vertx.core.Handler<io.vertx.core.AsyncResult<Map<TopicPartition, Long>>> handler) Get the last offset for the given partitions.voidKafkaConsumer.endOffsets(Set<TopicPartition> topicPartitions, io.vertx.core.Handler<io.vertx.core.AsyncResult<Map<TopicPartition, Long>>> handler) Get the last offset for the given partitions.io.vertx.core.Future<Map<TopicPartition,OffsetAndTimestamp>> KafkaConsumer.offsetsForTimes(Map<TopicPartition, Long> topicPartitionTimestamps) LikeKafkaConsumer.offsetsForTimes(Map, Handler)but returns aFutureof the asynchronous resultvoidKafkaConsumer.offsetsForTimes(Map<TopicPartition, Long> topicPartitionTimestamps, io.vertx.core.Handler<io.vertx.core.AsyncResult<Map<TopicPartition, OffsetAndTimestamp>>> handler) Look up the offsets for the given partitions by timestamp.voidKafkaConsumer.offsetsForTimes(Map<TopicPartition, Long> topicPartitionTimestamps, io.vertx.core.Handler<io.vertx.core.AsyncResult<Map<TopicPartition, OffsetAndTimestamp>>> handler) Look up the offsets for the given partitions by timestamp.KafkaConsumer.partitionsAssignedHandler(io.vertx.core.Handler<Set<TopicPartition>> handler) Set the handler called when topic partitions are assigned to the consumerKafkaConsumer.partitionsRevokedHandler(io.vertx.core.Handler<Set<TopicPartition>> handler) Set the handler called when topic partitions are revoked to the consumerio.vertx.core.Future<Void>KafkaConsumer.pause(Set<TopicPartition> topicPartitions) Suspend fetching from the requested partitions.KafkaConsumer.pause(Set<TopicPartition> topicPartitions, io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> completionHandler) Suspend fetching from the requested partitions.voidKafkaConsumer.paused(io.vertx.core.Handler<io.vertx.core.AsyncResult<Set<TopicPartition>>> handler) Get the set of partitions that were previously paused by a call to pause(Set).io.vertx.core.Future<Void>KafkaConsumer.resume(Set<TopicPartition> topicPartitions) Resume specified partitions which have been paused with pause.KafkaConsumer.resume(Set<TopicPartition> topicPartitions, io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> completionHandler) Resume specified partitions which have been paused with pause.io.vertx.core.Future<Void>KafkaConsumer.seekToBeginning(Set<TopicPartition> topicPartitions) Seek to the first offset for each of the given partitions.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.io.vertx.core.Future<Void>KafkaConsumer.seekToEnd(Set<TopicPartition> topicPartitions) Seek to the last offset for each of the given partitions.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.