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>> completionHandler)
Close the admin client
|
void |
close(long timeout,
io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> completionHandler)
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,
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,
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,
io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> completionHandler)
Delete consumer groups from the cluster.
|
void |
deleteTopics(List<String> topicNames,
io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> completionHandler)
Deletes a batch of Kafka topics
|
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
|
boolean |
equals(Object o) |
io.vertx.kafka.admin.KafkaAdminClient |
getDelegate() |
int |
hashCode() |
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(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<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 rx.Single<Set<String>> rxListTopics()
public 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 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 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 rx.Single<List<io.vertx.kafka.admin.ConsumerGroupListing>> rxListConsumerGroups()
public void close()
public 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 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 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 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>> completionHandler)
completionHandler
- handler called on operation completedpublic rx.Single<Void> rxClose()
public void close(long timeout, io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> completionHandler)
timeout
- timeout to wait for closingcompletionHandler
- handler called on operation completedpublic rx.Single<Void> rxClose(long timeout)
timeout
- timeout to wait for closingpublic static KafkaAdminClient newInstance(io.vertx.kafka.admin.KafkaAdminClient arg)
Copyright © 2022 Eclipse. All rights reserved.