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>> completionHandler)
Close the admin client
|
void |
close(long timeout,
Handler<AsyncResult<Void>> completionHandler)
Close the admin client
|
static KafkaAdminClient |
create(Vertx vertx,
Map<String,String> config)
Create a new KafkaAdminClient instance
|
void |
createTopics(List<NewTopic> topics,
Handler<AsyncResult<Void>> completionHandler)
Creates a batch of new Kafka topics
|
void |
deleteTopics(List<String> topicNames,
Handler<AsyncResult<Void>> completionHandler)
Deletes a batch of Kafka topics
|
boolean |
equals(Object o) |
KafkaAdminClient |
getDelegate() |
int |
hashCode() |
void |
listConsumerGroups(Handler<AsyncResult<List<ConsumerGroupListing>>> completionHandler)
Get the the consumer groups 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 |
rxDeleteTopics(List<String> topicNames)
Deletes a batch of Kafka topics
|
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 Single<Set<String>> rxListTopics()
public void createTopics(List<NewTopic> topics, Handler<AsyncResult<Void>> completionHandler)
topics
- topics to createcompletionHandler
- handler called on operation completedpublic 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 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 Single<List<ConsumerGroupListing>> rxListConsumerGroups()
public void close()
public void close(Handler<AsyncResult<Void>> completionHandler)
completionHandler
- handler called on operation completedpublic Completable rxClose()
public void close(long timeout, Handler<AsyncResult<Void>> completionHandler)
timeout
- timeout to wait for closingcompletionHandler
- handler called on operation completedpublic Completable rxClose(long timeout)
timeout
- timeout to wait for closingpublic static KafkaAdminClient newInstance(KafkaAdminClient arg)
Copyright © 2020 Eclipse. All rights reserved.