Class KafkaAdminClient


  • public class KafkaAdminClient
    extends Object
    Vert.x Kafka Admin client implementation

    NOTE: This class has been automatically generated from the original non RX-ified interface using Vert.x codegen.

    • Constructor Detail

      • KafkaAdminClient

        public KafkaAdminClient​(Object delegate)
    • Method Detail

      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • create

        public static KafkaAdminClient create​(Vertx vertx,
                                              Map<String,​String> config)
        Create a new KafkaAdminClient instance
        Parameters:
        vertx - Vert.x instance to use
        config - Kafka admin client configuration
        Returns:
        an instance of the KafkaAdminClient
      • listTopics

        public void listTopics​(io.vertx.core.Handler<io.vertx.core.AsyncResult<Set<String>>> completionHandler)
        List the topics available in the cluster with the default options.
        Parameters:
        completionHandler - handler called on operation completed with the topics set
      • listTopics

        public void listTopics()
        List the topics available in the cluster with the default options.
      • rxListTopics

        public rx.Single<Set<String>> rxListTopics()
        List the topics available in the cluster with the default options.
        Returns:
      • describeTopics

        public void describeTopics​(List<String> topicNames,
                                   io.vertx.core.Handler<io.vertx.core.AsyncResult<Map<String,​TopicDescription>>> completionHandler)
        Describe some topics in the cluster, with the default options.
        Parameters:
        topicNames - the names of the topics to describe
        completionHandler - handler called on operation completed with the topics descriptions
      • describeTopics

        public void describeTopics​(List<String> topicNames)
        Describe some topics in the cluster, with the default options.
        Parameters:
        topicNames - the names of the topics to describe
      • rxDescribeTopics

        public rx.Single<Map<String,​TopicDescription>> rxDescribeTopics​(List<String> topicNames)
        Describe some topics in the cluster, with the default options.
        Parameters:
        topicNames - the names of the topics to describe
        Returns:
      • createTopics

        public void createTopics​(List<NewTopic> topics,
                                 io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> completionHandler)
        Creates a batch of new Kafka topics
        Parameters:
        topics - topics to create
        completionHandler - handler called on operation completed
      • createTopics

        public void createTopics​(List<NewTopic> topics)
        Creates a batch of new Kafka topics
        Parameters:
        topics - topics to create
      • rxCreateTopics

        public rx.Single<Void> rxCreateTopics​(List<NewTopic> topics)
        Creates a batch of new Kafka topics
        Parameters:
        topics - topics to create
        Returns:
      • deleteTopics

        public void deleteTopics​(List<String> topicNames,
                                 io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> completionHandler)
        Deletes a batch of Kafka topics
        Parameters:
        topicNames - the names of the topics to delete
        completionHandler - handler called on operation completed
      • deleteTopics

        public void deleteTopics​(List<String> topicNames)
        Deletes a batch of Kafka topics
        Parameters:
        topicNames - the names of the topics to delete
      • rxDeleteTopics

        public rx.Single<Void> rxDeleteTopics​(List<String> topicNames)
        Deletes a batch of Kafka topics
        Parameters:
        topicNames - the names of the topics to delete
        Returns:
      • createPartitions

        public void createPartitions​(Map<String,​NewPartitions> partitions,
                                     io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> completionHandler)
        Creates a batch of new partitions in the Kafka topic
        Parameters:
        partitions - partitions to create
        completionHandler - handler called on operation completed
      • createPartitions

        public void createPartitions​(Map<String,​NewPartitions> partitions)
        Creates a batch of new partitions in the Kafka topic
        Parameters:
        partitions - partitions to create
      • rxCreatePartitions

        public rx.Single<Void> rxCreatePartitions​(Map<String,​NewPartitions> partitions)
        Creates a batch of new partitions in the Kafka topic
        Parameters:
        partitions - partitions to create
        Returns:
      • listConsumerGroups

        public void listConsumerGroups​(io.vertx.core.Handler<io.vertx.core.AsyncResult<List<ConsumerGroupListing>>> completionHandler)
        Get the the consumer groups available in the cluster with the default options
        Parameters:
        completionHandler - handler called on operation completed with the consumer groups ids
      • listConsumerGroups

        public void listConsumerGroups()
        Get the the consumer groups available in the cluster with the default options
      • rxListConsumerGroups

        public rx.Single<List<ConsumerGroupListing>> rxListConsumerGroups()
        Get the the consumer groups available in the cluster with the default options
        Returns:
      • describeConsumerGroups

        public void describeConsumerGroups​(List<String> groupIds,
                                           io.vertx.core.Handler<io.vertx.core.AsyncResult<Map<String,​ConsumerGroupDescription>>> completionHandler)
        Describe some group ids in the cluster, with the default options
        Parameters:
        groupIds - the ids of the groups to describe
        completionHandler - handler called on operation completed with the consumer groups descriptions
      • describeConsumerGroups

        public void describeConsumerGroups​(List<String> groupIds)
        Describe some group ids in the cluster, with the default options
        Parameters:
        groupIds - the ids of the groups to describe
      • rxDescribeConsumerGroups

        public rx.Single<Map<String,​ConsumerGroupDescription>> rxDescribeConsumerGroups​(List<String> groupIds)
        Describe some group ids in the cluster, with the default options
        Parameters:
        groupIds - the ids of the groups to describe
        Returns:
      • describeCluster

        public void describeCluster​(io.vertx.core.Handler<io.vertx.core.AsyncResult<ClusterDescription>> completionHandler)
        Describe the nodes in the cluster with the default options
        Parameters:
        completionHandler - handler called on operation completed with the cluster description
      • describeCluster

        public void describeCluster()
        Describe the nodes in the cluster with the default options
      • rxDescribeCluster

        public rx.Single<ClusterDescription> rxDescribeCluster()
        Describe the nodes in the cluster with the default options
        Returns:
      • deleteConsumerGroups

        public void deleteConsumerGroups​(List<String> groupIds,
                                         io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> completionHandler)
        Delete consumer groups from the cluster.
        Parameters:
        groupIds - the ids of the groups to delete
        completionHandler - handler called on operation completed
      • deleteConsumerGroups

        public void deleteConsumerGroups​(List<String> groupIds)
        Delete consumer groups from the cluster.
        Parameters:
        groupIds - the ids of the groups to delete
      • rxDeleteConsumerGroups

        public rx.Single<Void> rxDeleteConsumerGroups​(List<String> groupIds)
        Delete consumer groups from the cluster.
        Parameters:
        groupIds - the ids of the groups to delete
        Returns:
      • deleteConsumerGroupOffsets

        public void 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. This will succeed at the partition level only if the group is not actively subscribed to the corresponding topic.
        Parameters:
        groupId - The group id of the group whose offsets will be deleted
        partitions - The set of partitions in the consumer group whose offsets will be deleted
        completionHandler -
      • deleteConsumerGroupOffsets

        public void deleteConsumerGroupOffsets​(String groupId,
                                               Set<TopicPartition> partitions)
        Delete committed offsets for a set of partitions in a consumer group. This will succeed at the partition level only if the group is not actively subscribed to the corresponding topic.
        Parameters:
        groupId - The group id of the group whose offsets will be deleted
        partitions - The set of partitions in the consumer group whose offsets will be deleted
      • rxDeleteConsumerGroupOffsets

        public rx.Single<Void> rxDeleteConsumerGroupOffsets​(String groupId,
                                                            Set<TopicPartition> partitions)
        Delete committed offsets for a set of partitions in a consumer group. This will succeed at the partition level only if the group is not actively subscribed to the corresponding topic.
        Parameters:
        groupId - The group id of the group whose offsets will be deleted
        partitions - The set of partitions in the consumer group whose offsets will be deleted
        Returns:
      • close

        public void close​(io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> handler)
        Close the admin client
        Parameters:
        handler - a Handler completed with the operation result
      • close

        public void close()
        Close the admin client
      • rxClose

        public rx.Single<Void> rxClose()
        Close the admin client
        Returns:
      • close

        public void close​(long timeout,
                          io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> handler)
        Close the admin client
        Parameters:
        timeout - timeout to wait for closing
        handler - a Handler completed with the operation result
      • close

        public void close​(long timeout)
        Close the admin client
        Parameters:
        timeout - timeout to wait for closing
      • rxClose

        public rx.Single<Void> rxClose​(long timeout)
        Close the admin client
        Parameters:
        timeout - timeout to wait for closing
        Returns:
      • describeAcls

        public void describeAcls​(org.apache.kafka.common.acl.AclBindingFilter aclBindingFilter,
                                 io.vertx.core.Handler<io.vertx.core.AsyncResult<List<org.apache.kafka.common.acl.AclBinding>>> completionHandler)
        Describe the ACL rules.
        Parameters:
        aclBindingFilter - The filter to use.
        completionHandler - handler called on operation completed with the ACL description result.
      • describeAcls

        public void describeAcls​(org.apache.kafka.common.acl.AclBindingFilter aclBindingFilter)
        Describe the ACL rules.
        Parameters:
        aclBindingFilter - The filter to use.
      • rxDescribeAcls

        public rx.Single<List<org.apache.kafka.common.acl.AclBinding>> rxDescribeAcls​(org.apache.kafka.common.acl.AclBindingFilter aclBindingFilter)
        Describe the ACL rules.
        Parameters:
        aclBindingFilter - The filter to use.
        Returns:
      • createAcls

        public void createAcls​(List<org.apache.kafka.common.acl.AclBinding> aclBindings,
                               io.vertx.core.Handler<io.vertx.core.AsyncResult<List<org.apache.kafka.common.acl.AclBinding>>> completionHandler)
        Create the ACL rules.
        Parameters:
        aclBindings - The ACL to create.
        completionHandler - handler called on operation completed with the ACL creation result.
      • createAcls

        public void createAcls​(List<org.apache.kafka.common.acl.AclBinding> aclBindings)
        Create the ACL rules.
        Parameters:
        aclBindings - The ACL to create.
      • rxCreateAcls

        public rx.Single<List<org.apache.kafka.common.acl.AclBinding>> rxCreateAcls​(List<org.apache.kafka.common.acl.AclBinding> aclBindings)
        Create the ACL rules.
        Parameters:
        aclBindings - The ACL to create.
        Returns:
      • deleteAcls

        public void deleteAcls​(List<org.apache.kafka.common.acl.AclBindingFilter> aclBindings,
                               io.vertx.core.Handler<io.vertx.core.AsyncResult<List<org.apache.kafka.common.acl.AclBinding>>> completionHandler)
        Delete the ACL rules.
        Parameters:
        aclBindings - The filter to delete matching ACLs.
        completionHandler - handler called on operation completed with the ACL deletion result.
      • deleteAcls

        public void deleteAcls​(List<org.apache.kafka.common.acl.AclBindingFilter> aclBindings)
        Delete the ACL rules.
        Parameters:
        aclBindings - The filter to delete matching ACLs.
      • rxDeleteAcls

        public rx.Single<List<org.apache.kafka.common.acl.AclBinding>> rxDeleteAcls​(List<org.apache.kafka.common.acl.AclBindingFilter> aclBindings)
        Delete the ACL rules.
        Parameters:
        aclBindings - The filter to delete matching ACLs.
        Returns: