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 |
---|---|
void |
close()
Close the admin client
|
void |
close(Handler<AsyncResult<Void>> handler)
Close the admin client
|
void |
close(long timeout)
Close the admin client
|
void |
close(long timeout,
Handler<AsyncResult<Void>> handler)
Close the admin client
|
static KafkaAdminClient |
create(Vertx vertx,
Map<String,String> config)
Create a new KafkaAdminClient instance
|
void |
createTopics(List<NewTopic> topics)
Creates a batch of new Kafka topics
|
void |
createTopics(List<NewTopic> topics,
Handler<AsyncResult<Void>> completionHandler)
Creates a batch of new Kafka topics
|
void |
deleteConsumerGroupOffsets(String groupId,
Set<TopicPartition> partitions)
Delete committed offsets for a set of partitions in a consumer group.
|
void |
deleteConsumerGroupOffsets(String groupId,
Set<TopicPartition> partitions,
Handler<AsyncResult<Void>> completionHandler)
Delete committed offsets for a set of partitions in a consumer group.
|
void |
deleteConsumerGroups(List<String> groupIds)
Delete consumer groups from the cluster.
|
void |
deleteConsumerGroups(List<String> groupIds,
Handler<AsyncResult<Void>> completionHandler)
Delete consumer groups from the cluster.
|
void |
deleteTopics(List<String> topicNames)
Deletes a batch of Kafka topics
|
void |
deleteTopics(List<String> topicNames,
Handler<AsyncResult<Void>> completionHandler)
Deletes a batch of Kafka topics
|
void |
describeCluster()
Describe the nodes in the cluster with the default options
|
void |
describeCluster(Handler<AsyncResult<ClusterDescription>> completionHandler)
Describe the nodes in the cluster with the default options
|
void |
describeConsumerGroups(List<String> groupIds)
Describe some group ids in the cluster, with the default options
|
void |
describeConsumerGroups(List<String> groupIds,
Handler<AsyncResult<Map<String,ConsumerGroupDescription>>> completionHandler)
Describe some group ids in the cluster, with the default options
|
void |
describeTopics(List<String> topicNames)
Describe some topics in the cluster, with the default options.
|
void |
describeTopics(List<String> topicNames,
Handler<AsyncResult<Map<String,TopicDescription>>> completionHandler)
Describe some topics in the cluster, with the default options.
|
boolean |
equals(Object o) |
KafkaAdminClient |
getDelegate() |
int |
hashCode() |
void |
listConsumerGroups()
Get the the consumer groups available in the cluster with the default options
|
void |
listConsumerGroups(Handler<AsyncResult<List<ConsumerGroupListing>>> completionHandler)
Get the the consumer groups available in the cluster with the default options
|
void |
listTopics()
List the topics available in the cluster with the default options.
|
void |
listTopics(Handler<AsyncResult<Set<String>>> completionHandler)
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
|
Completable |
rxCreateTopics(List<NewTopic> topics)
Creates a batch of new Kafka topics
|
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<ClusterDescription> |
rxDescribeCluster()
Describe the nodes in the cluster with the default options
|
Single<Map<String,ConsumerGroupDescription>> |
rxDescribeConsumerGroups(List<String> groupIds)
Describe some group ids in the cluster, with the default options
|
Single<Map<String,TopicDescription>> |
rxDescribeTopics(List<String> topicNames)
Describe some topics in the cluster, with the default options.
|
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 void listTopics(Handler<AsyncResult<Set<String>>> completionHandler)
completionHandler
- handler called on operation completed with the topics setpublic void listTopics()
public Single<Set<String>> rxListTopics()
public void describeTopics(List<String> topicNames, Handler<AsyncResult<Map<String,TopicDescription>>> completionHandler)
topicNames
- the names of the topics to describecompletionHandler
- handler called on operation completed with the topics descriptionspublic void 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 void createTopics(List<NewTopic> topics, Handler<AsyncResult<Void>> completionHandler)
topics
- topics to createcompletionHandler
- handler called on operation completedpublic void createTopics(List<NewTopic> topics)
topics
- topics to createpublic Completable rxCreateTopics(List<NewTopic> topics)
topics
- topics to createpublic void deleteTopics(List<String> topicNames, Handler<AsyncResult<Void>> completionHandler)
topicNames
- the names of the topics to deletecompletionHandler
- handler called on operation completedpublic void 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 void listConsumerGroups(Handler<AsyncResult<List<ConsumerGroupListing>>> completionHandler)
completionHandler
- handler called on operation completed with the consumer groups idspublic void listConsumerGroups()
public Single<List<ConsumerGroupListing>> rxListConsumerGroups()
public void describeConsumerGroups(List<String> groupIds, Handler<AsyncResult<Map<String,ConsumerGroupDescription>>> completionHandler)
groupIds
- the ids of the groups to describecompletionHandler
- handler called on operation completed with the consumer groups descriptionspublic void 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 void describeCluster(Handler<AsyncResult<ClusterDescription>> completionHandler)
completionHandler
- handler called on operation completed with the cluster descriptionpublic void describeCluster()
public Single<ClusterDescription> rxDescribeCluster()
public void deleteConsumerGroups(List<String> groupIds, Handler<AsyncResult<Void>> completionHandler)
groupIds
- the ids of the groups to deletecompletionHandler
- handler called on operation completedpublic void 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 void deleteConsumerGroupOffsets(String groupId, Set<TopicPartition> partitions, Handler<AsyncResult<Void>> completionHandler)
groupId
- The group id of the group whose offsets will be deletedpartitions
- The set of partitions in the consumer group whose offsets will be deletedcompletionHandler
- public void 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 void close(Handler<AsyncResult<Void>> handler)
handler
- a Handler
completed with the operation resultpublic void close()
public Completable rxClose()
public void close(long timeout, Handler<AsyncResult<Void>> handler)
timeout
- timeout to wait for closinghandler
- a Handler
completed with the operation resultpublic void close(long timeout)
timeout
- timeout to wait for closingpublic Completable rxClose(long timeout)
timeout
- timeout to wait for closingpublic static KafkaAdminClient newInstance(KafkaAdminClient arg)
Copyright © 2021 Eclipse. All rights reserved.