Modifier and Type | Field and Description |
---|---|
static io.vertx.lang.rx.TypeArg<KafkaAdminClient> |
__TYPE_ARG |
Constructor and Description |
---|
KafkaAdminClient(KafkaAdminClient delegate) |
KafkaAdminClient(Object delegate) |
Modifier and Type | Method and Description |
---|---|
Completable |
close()
Close the admin client
|
Completable |
close(long timeout)
Close the admin client
|
static KafkaAdminClient |
create(Vertx vertx,
Map<String,String> config)
Create a new KafkaAdminClient instance
|
Single<List<org.apache.kafka.common.acl.AclBinding>> |
createAcls(List<org.apache.kafka.common.acl.AclBinding> aclBindings)
Create the ACL rules.
|
Completable |
createPartitions(Map<String,NewPartitions> partitions)
Creates a batch of new partitions in the Kafka topic
|
Completable |
createTopics(List<NewTopic> topics)
Creates a batch of new Kafka topics
|
Single<List<org.apache.kafka.common.acl.AclBinding>> |
deleteAcls(List<org.apache.kafka.common.acl.AclBindingFilter> aclBindings)
Delete the ACL rules.
|
Completable |
deleteConsumerGroupOffsets(String groupId,
Set<TopicPartition> partitions)
Delete committed offsets for a set of partitions in a consumer group.
|
Completable |
deleteConsumerGroups(List<String> groupIds)
Delete consumer groups from the cluster.
|
Completable |
deleteTopics(List<String> topicNames)
Deletes a batch of Kafka topics
|
Single<List<org.apache.kafka.common.acl.AclBinding>> |
describeAcls(org.apache.kafka.common.acl.AclBindingFilter aclBindingFilter)
Describe the ACL rules.
|
Single<ClusterDescription> |
describeCluster()
Describe the nodes in the cluster with the default options
|
Single<ClusterDescription> |
describeCluster(DescribeClusterOptions options)
Like
describeCluster() but allows customized options. |
Single<Map<String,ConsumerGroupDescription>> |
describeConsumerGroups(List<String> groupIds)
Describe some group ids in the cluster, with the default options
|
Single<Map<String,ConsumerGroupDescription>> |
describeConsumerGroups(List<String> groupIds,
DescribeConsumerGroupsOptions options)
Like
describeConsumerGroups(java.util.List<java.lang.String>) but allows customized options |
Single<Map<String,TopicDescription>> |
describeTopics(List<String> topicNames)
Describe some topics in the cluster, with the default options.
|
Single<Map<String,TopicDescription>> |
describeTopics(List<String> topicNames,
DescribeTopicsOptions options)
Like
describeTopics(java.util.List<java.lang.String>) but allows for customised otions |
boolean |
equals(Object o) |
KafkaAdminClient |
getDelegate() |
int |
hashCode() |
Single<List<ConsumerGroupListing>> |
listConsumerGroups()
Get the the consumer groups available in the cluster with the default options
|
Single<Set<String>> |
listTopics()
List the topics available in the cluster with the default options.
|
static KafkaAdminClient |
newInstance(KafkaAdminClient arg) |
Completable |
rxClose()
Close the admin client
|
Completable |
rxClose(long timeout)
Close the admin client
|
Single<List<org.apache.kafka.common.acl.AclBinding>> |
rxCreateAcls(List<org.apache.kafka.common.acl.AclBinding> aclBindings)
Create the ACL rules.
|
Completable |
rxCreatePartitions(Map<String,NewPartitions> partitions)
Creates a batch of new partitions in the Kafka topic
|
Completable |
rxCreateTopics(List<NewTopic> topics)
Creates a batch of new Kafka topics
|
Single<List<org.apache.kafka.common.acl.AclBinding>> |
rxDeleteAcls(List<org.apache.kafka.common.acl.AclBindingFilter> aclBindings)
Delete the ACL rules.
|
Completable |
rxDeleteConsumerGroupOffsets(String groupId,
Set<TopicPartition> partitions)
Delete committed offsets for a set of partitions in a consumer group.
|
Completable |
rxDeleteConsumerGroups(List<String> groupIds)
Delete consumer groups from the cluster.
|
Completable |
rxDeleteTopics(List<String> topicNames)
Deletes a batch of Kafka topics
|
Single<List<org.apache.kafka.common.acl.AclBinding>> |
rxDescribeAcls(org.apache.kafka.common.acl.AclBindingFilter aclBindingFilter)
Describe the ACL rules.
|
Single<ClusterDescription> |
rxDescribeCluster()
Describe the nodes in the cluster with the default options
|
Single<ClusterDescription> |
rxDescribeCluster(DescribeClusterOptions options)
Like
describeCluster() but allows customized options. |
Single<Map<String,ConsumerGroupDescription>> |
rxDescribeConsumerGroups(List<String> groupIds)
Describe some group ids in the cluster, with the default options
|
Single<Map<String,ConsumerGroupDescription>> |
rxDescribeConsumerGroups(List<String> groupIds,
DescribeConsumerGroupsOptions options)
Like
describeConsumerGroups(java.util.List<java.lang.String>) but allows customized options |
Single<Map<String,TopicDescription>> |
rxDescribeTopics(List<String> topicNames)
Describe some topics in the cluster, with the default options.
|
Single<Map<String,TopicDescription>> |
rxDescribeTopics(List<String> topicNames,
DescribeTopicsOptions options)
Like
describeTopics(java.util.List<java.lang.String>) but allows for customised otions |
Single<List<ConsumerGroupListing>> |
rxListConsumerGroups()
Get the the consumer groups available in the cluster with the default options
|
Single<Set<String>> |
rxListTopics()
List the topics available in the cluster with the default options.
|
String |
toString() |
public static final io.vertx.lang.rx.TypeArg<KafkaAdminClient> __TYPE_ARG
public KafkaAdminClient(KafkaAdminClient delegate)
public KafkaAdminClient(Object delegate)
public KafkaAdminClient getDelegate()
public static KafkaAdminClient create(Vertx vertx, Map<String,String> config)
vertx
- Vert.x instance to useconfig
- Kafka admin client configurationpublic Single<Set<String>> listTopics()
public Single<Set<String>> rxListTopics()
public Single<Map<String,TopicDescription>> describeTopics(List<String> topicNames)
topicNames
- the names of the topics to describepublic Single<Map<String,TopicDescription>> rxDescribeTopics(List<String> topicNames)
topicNames
- the names of the topics to describepublic Single<Map<String,TopicDescription>> describeTopics(List<String> topicNames, DescribeTopicsOptions options)
describeTopics(java.util.List<java.lang.String>)
but allows for customised otionstopicNames
- options
- public Single<Map<String,TopicDescription>> rxDescribeTopics(List<String> topicNames, DescribeTopicsOptions options)
describeTopics(java.util.List<java.lang.String>)
but allows for customised otionstopicNames
- options
- public Completable createTopics(List<NewTopic> topics)
topics
- topics to createpublic Completable rxCreateTopics(List<NewTopic> topics)
topics
- topics to createpublic Completable deleteTopics(List<String> topicNames)
topicNames
- the names of the topics to deletepublic Completable rxDeleteTopics(List<String> topicNames)
topicNames
- the names of the topics to deletepublic Completable createPartitions(Map<String,NewPartitions> partitions)
partitions
- partitions to createpublic Completable rxCreatePartitions(Map<String,NewPartitions> partitions)
partitions
- partitions to createpublic Single<List<ConsumerGroupListing>> listConsumerGroups()
public Single<List<ConsumerGroupListing>> rxListConsumerGroups()
public Single<Map<String,ConsumerGroupDescription>> describeConsumerGroups(List<String> groupIds)
groupIds
- the ids of the groups to describepublic Single<Map<String,ConsumerGroupDescription>> rxDescribeConsumerGroups(List<String> groupIds)
groupIds
- the ids of the groups to describepublic Single<Map<String,ConsumerGroupDescription>> describeConsumerGroups(List<String> groupIds, DescribeConsumerGroupsOptions options)
describeConsumerGroups(java.util.List<java.lang.String>)
but allows customized optionsgroupIds
- options
- public Single<Map<String,ConsumerGroupDescription>> rxDescribeConsumerGroups(List<String> groupIds, DescribeConsumerGroupsOptions options)
describeConsumerGroups(java.util.List<java.lang.String>)
but allows customized optionsgroupIds
- options
- public Single<ClusterDescription> describeCluster()
public Single<ClusterDescription> rxDescribeCluster()
public Single<ClusterDescription> describeCluster(DescribeClusterOptions options)
describeCluster()
but allows customized options.options
- public Single<ClusterDescription> rxDescribeCluster(DescribeClusterOptions options)
describeCluster()
but allows customized options.options
- public Completable deleteConsumerGroups(List<String> groupIds)
groupIds
- the ids of the groups to deletepublic Completable rxDeleteConsumerGroups(List<String> groupIds)
groupIds
- the ids of the groups to deletepublic Completable deleteConsumerGroupOffsets(String groupId, Set<TopicPartition> partitions)
groupId
- The group id of the group whose offsets will be deletedpartitions
- The set of partitions in the consumer group whose offsets will be deletedpublic Completable rxDeleteConsumerGroupOffsets(String groupId, Set<TopicPartition> partitions)
groupId
- The group id of the group whose offsets will be deletedpartitions
- The set of partitions in the consumer group whose offsets will be deletedpublic Completable close()
public Completable rxClose()
public Completable close(long timeout)
timeout
- timeout to wait for closingpublic Completable rxClose(long timeout)
timeout
- timeout to wait for closingpublic Single<List<org.apache.kafka.common.acl.AclBinding>> describeAcls(org.apache.kafka.common.acl.AclBindingFilter aclBindingFilter)
aclBindingFilter
- The filter to use.public Single<List<org.apache.kafka.common.acl.AclBinding>> rxDescribeAcls(org.apache.kafka.common.acl.AclBindingFilter aclBindingFilter)
aclBindingFilter
- The filter to use.public Single<List<org.apache.kafka.common.acl.AclBinding>> createAcls(List<org.apache.kafka.common.acl.AclBinding> aclBindings)
aclBindings
- The ACL to create.public Single<List<org.apache.kafka.common.acl.AclBinding>> rxCreateAcls(List<org.apache.kafka.common.acl.AclBinding> aclBindings)
aclBindings
- The ACL to create.public Single<List<org.apache.kafka.common.acl.AclBinding>> deleteAcls(List<org.apache.kafka.common.acl.AclBindingFilter> aclBindings)
aclBindings
- The filter to delete matching ACLs.public Single<List<org.apache.kafka.common.acl.AclBinding>> rxDeleteAcls(List<org.apache.kafka.common.acl.AclBindingFilter> aclBindings)
aclBindings
- The filter to delete matching ACLs.public static KafkaAdminClient newInstance(KafkaAdminClient arg)
Copyright © 2024 Eclipse. All rights reserved.