Class KafkaAdminClient
java.lang.Object
io.vertx.reactivex.kafka.admin.KafkaAdminClient
- All Implemented Interfaces:
io.vertx.lang.rx.RxDelegate
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionKafkaAdminClient(KafkaAdminClient delegate) KafkaAdminClient(Object delegate) -
Method Summary
Modifier and TypeMethodDescriptionclose()Close the admin clientclose(long timeout) Close the admin clientstatic KafkaAdminClientCreate a new KafkaAdminClient instancecreateAcls(List<org.apache.kafka.common.acl.AclBinding> aclBindings) Create the ACL rules.createPartitions(Map<String, NewPartitions> partitions) Creates a batch of new partitions in the Kafka topiccreateTopics(List<NewTopic> topics) Creates a batch of new Kafka topicsdeleteAcls(List<org.apache.kafka.common.acl.AclBindingFilter> aclBindings) Delete the ACL rules.deleteConsumerGroupOffsets(String groupId, Set<TopicPartition> partitions) Delete committed offsets for a set of partitions in a consumer group.deleteConsumerGroups(List<String> groupIds) Delete consumer groups from the cluster.deleteTopics(List<String> topicNames) Deletes a batch of Kafka topicsdescribeAcls(org.apache.kafka.common.acl.AclBindingFilter aclBindingFilter) Describe the ACL rules.Describe the nodes in the cluster with the default optionsdescribeCluster(DescribeClusterOptions options) LikedescribeCluster()but allows customized options.describeConsumerGroups(List<String> groupIds) Describe some group ids in the cluster, with the default optionsdescribeConsumerGroups(List<String> groupIds, DescribeConsumerGroupsOptions options) LikedescribeConsumerGroups(List)but allows customized optionsdescribeTopics(List<String> topicNames) Describe some topics in the cluster, with the default options.describeTopics(List<String> topicNames, DescribeTopicsOptions options) LikedescribeTopics(List)but allows for customised otionsbooleaninthashCode()Get the the consumer groups available in the cluster with the default optionsList the topics available in the cluster with the default options.static KafkaAdminClientrxClose()Close the admin clientrxClose(long timeout) Close the admin clientrxCreateAcls(List<org.apache.kafka.common.acl.AclBinding> aclBindings) Create the ACL rules.rxCreatePartitions(Map<String, NewPartitions> partitions) Creates a batch of new partitions in the Kafka topicrxCreateTopics(List<NewTopic> topics) Creates a batch of new Kafka topicsrxDeleteAcls(List<org.apache.kafka.common.acl.AclBindingFilter> aclBindings) Delete the ACL rules.rxDeleteConsumerGroupOffsets(String groupId, Set<TopicPartition> partitions) Delete committed offsets for a set of partitions in a consumer group.rxDeleteConsumerGroups(List<String> groupIds) Delete consumer groups from the cluster.rxDeleteTopics(List<String> topicNames) Deletes a batch of Kafka topicsrxDescribeAcls(org.apache.kafka.common.acl.AclBindingFilter aclBindingFilter) Describe the ACL rules.Describe the nodes in the cluster with the default optionsrxDescribeCluster(DescribeClusterOptions options) LikedescribeCluster()but allows customized options.rxDescribeConsumerGroups(List<String> groupIds) Describe some group ids in the cluster, with the default optionsrxDescribeConsumerGroups(List<String> groupIds, DescribeConsumerGroupsOptions options) LikedescribeConsumerGroups(List)but allows customized optionsrxDescribeTopics(List<String> topicNames) Describe some topics in the cluster, with the default options.rxDescribeTopics(List<String> topicNames, DescribeTopicsOptions options) LikedescribeTopics(List)but allows for customised otionsGet the the consumer groups available in the cluster with the default optionsList the topics available in the cluster with the default options.toString()
-
Field Details
-
__TYPE_ARG
-
-
Constructor Details
-
KafkaAdminClient
-
KafkaAdminClient
-
-
Method Details
-
toString
-
equals
-
hashCode
-
getDelegate
- Specified by:
getDelegatein interfaceio.vertx.lang.rx.RxDelegate
-
create
Create a new KafkaAdminClient instance- Parameters:
vertx- Vert.x instance to useconfig- Kafka admin client configuration- Returns:
- an instance of the KafkaAdminClient
-
listTopics
-
rxListTopics
-
describeTopics
-
rxDescribeTopics
-
describeTopics
public Future<Map<String, TopicDescription>> describeTopics(List<String> topicNames, DescribeTopicsOptions options) LikedescribeTopics(List)but allows for customised otions- Parameters:
topicNames-options-- Returns:
-
rxDescribeTopics
public Single<Map<String, TopicDescription>> rxDescribeTopics(List<String> topicNames, DescribeTopicsOptions options) LikedescribeTopics(List)but allows for customised otions- Parameters:
topicNames-options-- Returns:
-
createTopics
-
rxCreateTopics
Creates a batch of new Kafka topics- Parameters:
topics- topics to create- Returns:
- a future notified with the result
-
deleteTopics
-
rxDeleteTopics
Deletes a batch of Kafka topics- Parameters:
topicNames- the names of the topics to delete- Returns:
- a future notified with the result
-
createPartitions
Creates a batch of new partitions in the Kafka topic- Parameters:
partitions- partitions to create- Returns:
- a future notified with the result
-
rxCreatePartitions
Creates a batch of new partitions in the Kafka topic- Parameters:
partitions- partitions to create- Returns:
- a future notified with the result
-
listConsumerGroups
Get the the consumer groups available in the cluster with the default options- Returns:
- a future notified with the result
-
rxListConsumerGroups
Get the the consumer groups available in the cluster with the default options- Returns:
- a future notified with the result
-
describeConsumerGroups
-
rxDescribeConsumerGroups
-
describeConsumerGroups
public Future<Map<String, ConsumerGroupDescription>> describeConsumerGroups(List<String> groupIds, DescribeConsumerGroupsOptions options) LikedescribeConsumerGroups(List)but allows customized options- Parameters:
groupIds-options-- Returns:
-
rxDescribeConsumerGroups
public Single<Map<String, ConsumerGroupDescription>> rxDescribeConsumerGroups(List<String> groupIds, DescribeConsumerGroupsOptions options) LikedescribeConsumerGroups(List)but allows customized options- Parameters:
groupIds-options-- Returns:
-
describeCluster
Describe the nodes in the cluster with the default options- Returns:
- a future notified with the result
-
rxDescribeCluster
Describe the nodes in the cluster with the default options- Returns:
- a future notified with the result
-
describeCluster
LikedescribeCluster()but allows customized options.- Parameters:
options-- Returns:
-
rxDescribeCluster
LikedescribeCluster()but allows customized options.- Parameters:
options-- Returns:
-
deleteConsumerGroups
-
rxDeleteConsumerGroups
Delete consumer groups from the cluster.- Parameters:
groupIds- the ids of the groups to delete- Returns:
- a future notified with the result
-
deleteConsumerGroupOffsets
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 deletedpartitions-- Returns:
- a future notified with the result
-
rxDeleteConsumerGroupOffsets
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 deletedpartitions-- Returns:
- a future notified with the result
-
close
-
rxClose
-
close
-
rxClose
Close the admin client- Parameters:
timeout- timeout to wait for closing- Returns:
- a future notified with the result
-
describeAcls
-
rxDescribeAcls
-
createAcls
-
rxCreateAcls
-
deleteAcls
-
rxDeleteAcls
-
newInstance
-