KafkaAdminClient represents an admin client for Kafka, which is able to
describe queries about topics, consumer groups, offsets, and other entities
related to Kafka.
Use KafkaAdminClient.resource or KafkaAdminClient.stream to create an instance.
- Companion:
- object
Value members
Abstract methods
Updates the configuration for the specified resources.
Updates the configuration for the specified resources.
Alters offsets for the specified group. In order to succeed, the group must be empty.
Alters offsets for the specified group. In order to succeed, the group must be empty.
Increase the number of partitions for different topics
Increase the number of partitions for different topics
Delete committed offsets for a set of partitions in a consumer group. This will succeed at the partition level only if the group is not actively subscribed to the corresponding topic.
Delete committed offsets for a set of partitions in a consumer group. This will succeed at the partition level only if the group is not actively subscribed to the corresponding topic.
Describes the ACLs based on the specified filters, returning a
List
of AclBinding
entries matched
Describes the ACLs based on the specified filters, returning a
List
of AclBinding
entries matched
Describes the cluster. Returns nodes using:
Describes the cluster. Returns nodes using:
describeCluster.nodes
or the controller node using:
describeCluster.controller
or the cluster ID using the following.
describeCluster.clusterId
Describes the configurations for the specified resources.
Describes the configurations for the specified resources.
Describes the consumer groups with the specified group ids, returning a
Map
with group ids as keys, and ConsumerGroupDescription
s as values.
Describes the consumer groups with the specified group ids, returning a
Map
with group ids as keys, and ConsumerGroupDescription
s as values.
Describes the topics with the specified topic names, returning a
Map
with topic names as keys, and TopicDescription
s as values.
Describes the topics with the specified topic names, returning a
Map
with topic names as keys, and TopicDescription
s as values.
Lists consumer group offsets. Returns offsets per topic-partition using:
Lists consumer group offsets. Returns offsets per topic-partition using:
listConsumerGroupOffsets(groupId)
.partitionsToOffsetAndMetadata
or only offsets for specified topic-partitions using the following.
listConsumerGroupOffsets(groupId)
.forPartitions(topicPartitions)
.partitionsToOffsetAndMetadata
Lists consumer groups. Returns group ids using:
Lists consumer groups. Returns group ids using:
listConsumerGroups.groupIds
or ConsumerGroupListing
s using the following.
listConsumerGroups.listings
Lists topics. Returns topic names using:
Lists topics. Returns topic names using:
listTopics.names
or TopicListing
s using:
listTopics.listings
or a Map
of topic names to TopicListing
s using the following.
listTopics.namesToListings
If you want to include internal topics, first use includeInternal
.
listTopics.includeInternal.listings