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
|
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
|
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<ClusterDescription> |
describeCluster()
Describe the nodes in the cluster with the default options
|
Single<Map<String,ConsumerGroupDescription>> |
describeConsumerGroups(List<String> groupIds)
Describe some group ids in the cluster, with the default options
|
Single<Map<String,TopicDescription>> |
describeTopics(List<String> topicNames)
Describe some topics in the cluster, with the default options.
|
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
|
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
|
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 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 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<ClusterDescription> describeCluster()
public Single<ClusterDescription> rxDescribeCluster()
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 static KafkaAdminClient newInstance(KafkaAdminClient arg)
Copyright © 2021 Eclipse. All rights reserved.