Creates the specified topic.
Creates the specified topics.
Describes the cluster.
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 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.
Lists consumer group offsets.
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.
Lists consumer groups. Returns group ids using:
listConsumerGroups.groupIds
or ConsumerGroupListing
s using the following.
listConsumerGroups.listings
Lists topics.
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
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 adminClientResource or adminClientStream to create an instance.