public class KafkaAdminClient extends Object
original
non RX-ified interface using Vert.x codegen.Modifier and Type | Field and Description |
---|---|
static TypeArg<KafkaAdminClient> |
__TYPE_ARG |
Constructor and Description |
---|
KafkaAdminClient(io.vertx.kafka.admin.KafkaAdminClient delegate) |
KafkaAdminClient(Object delegate) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Close the admin client
|
void |
close(io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> handler)
Close the admin client
|
void |
close(long timeout)
Close the admin client
|
void |
close(long timeout,
io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> handler)
Close the admin client
|
static KafkaAdminClient |
create(Vertx vertx,
Map<String,String> config)
Create a new KafkaAdminClient instance
|
void |
createTopics(List<io.vertx.kafka.admin.NewTopic> topics)
Creates a batch of new Kafka topics
|
void |
createTopics(List<io.vertx.kafka.admin.NewTopic> topics,
io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> completionHandler)
Creates a batch of new Kafka topics
|
void |
deleteConsumerGroupOffsets(String groupId,
Set<io.vertx.kafka.client.common.TopicPartition> partitions)
Delete committed offsets for a set of partitions in a consumer group.
|
void |
deleteConsumerGroupOffsets(String groupId,
Set<io.vertx.kafka.client.common.TopicPartition> partitions,
io.vertx.core.Handler<io.vertx.core.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,
io.vertx.core.Handler<io.vertx.core.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,
io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> completionHandler)
Deletes a batch of Kafka topics
|
void |
describeCluster()
Describe the nodes in the cluster with the default options
|
void |
describeCluster(io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.kafka.admin.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,
io.vertx.core.Handler<io.vertx.core.AsyncResult<Map<String,io.vertx.kafka.admin.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,
io.vertx.core.Handler<io.vertx.core.AsyncResult<Map<String,io.vertx.kafka.admin.TopicDescription>>> completionHandler)
Describe some topics in the cluster, with the default options.
|
boolean |
equals(Object o) |
io.vertx.kafka.admin.KafkaAdminClient |
getDelegate() |
int |
hashCode() |
void |
listConsumerGroups()
Get the the consumer groups available in the cluster with the default options
|
void |
listConsumerGroups(io.vertx.core.Handler<io.vertx.core.AsyncResult<List<io.vertx.kafka.admin.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(io.vertx.core.Handler<io.vertx.core.AsyncResult<Set<String>>> completionHandler)
List the topics available in the cluster with the default options.
|
static KafkaAdminClient |
newInstance(io.vertx.kafka.admin.KafkaAdminClient arg) |
rx.Single<Void> |
rxClose()
Close the admin client
|
rx.Single<Void> |
rxClose(long timeout)
Close the admin client
|
rx.Single<Void> |
rxCreateTopics(List<io.vertx.kafka.admin.NewTopic> topics)
Creates a batch of new Kafka topics
|
rx.Single<Void> |
rxDeleteConsumerGroupOffsets(String groupId,
Set<io.vertx.kafka.client.common.TopicPartition> partitions)
Delete committed offsets for a set of partitions in a consumer group.
|
rx.Single<Void> |
rxDeleteConsumerGroups(List<String> groupIds)
Delete consumer groups from the cluster.
|
rx.Single<Void> |
rxDeleteTopics(List<String> topicNames)
Deletes a batch of Kafka topics
|
rx.Single<io.vertx.kafka.admin.ClusterDescription> |
rxDescribeCluster()
Describe the nodes in the cluster with the default options
|
rx.Single<Map<String,io.vertx.kafka.admin.ConsumerGroupDescription>> |
rxDescribeConsumerGroups(List<String> groupIds)
Describe some group ids in the cluster, with the default options
|
rx.Single<Map<String,io.vertx.kafka.admin.TopicDescription>> |
rxDescribeTopics(List<String> topicNames)
Describe some topics in the cluster, with the default options.
|
rx.Single<List<io.vertx.kafka.admin.ConsumerGroupListing>> |
rxListConsumerGroups()
Get the the consumer groups available in the cluster with the default options
|
rx.Single<Set<String>> |
rxListTopics()
List the topics available in the cluster with the default options.
|
String |
toString() |
public static final TypeArg<KafkaAdminClient> __TYPE_ARG
public KafkaAdminClient(io.vertx.kafka.admin.KafkaAdminClient delegate)
public KafkaAdminClient(Object delegate)
public io.vertx.kafka.admin.KafkaAdminClient getDelegate()
public static KafkaAdminClient create(Vertx vertx, Map<String,String> config)
vertx
- Vert.x instance to useconfig
- Kafka admin client configurationpublic void listTopics(io.vertx.core.Handler<io.vertx.core.AsyncResult<Set<String>>> completionHandler)
completionHandler
- handler called on operation completed with the topics setpublic void listTopics()
public rx.Single<Set<String>> rxListTopics()
public void describeTopics(List<String> topicNames, io.vertx.core.Handler<io.vertx.core.AsyncResult<Map<String,io.vertx.kafka.admin.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 rx.Single<Map<String,io.vertx.kafka.admin.TopicDescription>> rxDescribeTopics(List<String> topicNames)
topicNames
- the names of the topics to describepublic void createTopics(List<io.vertx.kafka.admin.NewTopic> topics, io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> completionHandler)
topics
- topics to createcompletionHandler
- handler called on operation completedpublic void createTopics(List<io.vertx.kafka.admin.NewTopic> topics)
topics
- topics to createpublic rx.Single<Void> rxCreateTopics(List<io.vertx.kafka.admin.NewTopic> topics)
topics
- topics to createpublic void deleteTopics(List<String> topicNames, io.vertx.core.Handler<io.vertx.core.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 rx.Single<Void> rxDeleteTopics(List<String> topicNames)
topicNames
- the names of the topics to deletepublic void listConsumerGroups(io.vertx.core.Handler<io.vertx.core.AsyncResult<List<io.vertx.kafka.admin.ConsumerGroupListing>>> completionHandler)
completionHandler
- handler called on operation completed with the consumer groups idspublic void listConsumerGroups()
public rx.Single<List<io.vertx.kafka.admin.ConsumerGroupListing>> rxListConsumerGroups()
public void describeConsumerGroups(List<String> groupIds, io.vertx.core.Handler<io.vertx.core.AsyncResult<Map<String,io.vertx.kafka.admin.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 rx.Single<Map<String,io.vertx.kafka.admin.ConsumerGroupDescription>> rxDescribeConsumerGroups(List<String> groupIds)
groupIds
- the ids of the groups to describepublic void describeCluster(io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.kafka.admin.ClusterDescription>> completionHandler)
completionHandler
- handler called on operation completed with the cluster descriptionpublic void describeCluster()
public rx.Single<io.vertx.kafka.admin.ClusterDescription> rxDescribeCluster()
public void deleteConsumerGroups(List<String> groupIds, io.vertx.core.Handler<io.vertx.core.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 rx.Single<Void> rxDeleteConsumerGroups(List<String> groupIds)
groupIds
- the ids of the groups to deletepublic void deleteConsumerGroupOffsets(String groupId, Set<io.vertx.kafka.client.common.TopicPartition> partitions, io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> completionHandler)
groupId
- The group id of the group whose offsets will be listedpartitions
- The set of partitions in the consumer group whose offsets will be deletedcompletionHandler
- public void deleteConsumerGroupOffsets(String groupId, Set<io.vertx.kafka.client.common.TopicPartition> partitions)
groupId
- The group id of the group whose offsets will be listedpartitions
- The set of partitions in the consumer group whose offsets will be deletedpublic rx.Single<Void> rxDeleteConsumerGroupOffsets(String groupId, Set<io.vertx.kafka.client.common.TopicPartition> partitions)
groupId
- The group id of the group whose offsets will be listedpartitions
- The set of partitions in the consumer group whose offsets will be deletedpublic void close(io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> handler)
handler
- a Handler
completed with the operation resultpublic void close()
public rx.Single<Void> rxClose()
public void close(long timeout, io.vertx.core.Handler<io.vertx.core.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 rx.Single<Void> rxClose(long timeout)
timeout
- timeout to wait for closingpublic static KafkaAdminClient newInstance(io.vertx.kafka.admin.KafkaAdminClient arg)
Copyright © 2021 Eclipse. All rights reserved.