sealed abstract class KafkaAdminClient[F[_]] extends AnyRef
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.
- Source
- KafkaAdminClient.scala
- Alphabetic
- By Inheritance
- KafkaAdminClient
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Abstract Value Members
- abstract def alterConfigs[G[_]](configs: Map[ConfigResource, G[AlterConfigOp]])(implicit G: Foldable[G]): F[Unit]
Updates the configuration for the specified resources.
- abstract def alterConsumerGroupOffsets(groupId: String, offsets: Map[TopicPartition, OffsetAndMetadata]): F[Unit]
Alters offsets for the specified group.
Alters offsets for the specified group. In order to succeed, the group must be empty.
- abstract def createAcls[G[_]](acls: G[AclBinding])(implicit G: Foldable[G]): F[Unit]
Creates the specified ACLs
- abstract def createPartitions(newPartitions: Map[String, NewPartitions]): F[Unit]
Increase the number of partitions for different topics
- abstract def createTopic(topic: NewTopic): F[Unit]
Creates the specified topic.
- abstract def createTopics[G[_]](topics: G[NewTopic])(implicit G: Foldable[G]): F[Unit]
Creates the specified topics.
- abstract def deleteAcls[G[_]](filters: G[AclBindingFilter])(implicit G: Foldable[G]): F[Unit]
Deletes ACLs based on specified filters
- abstract def deleteConsumerGroupOffsets(groupId: String, partitions: Set[TopicPartition]): F[Unit]
Delete committed offsets for a set of partitions in a consumer group.
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.
- abstract def deleteConsumerGroups[G[_]](groupIds: G[String])(implicit G: Foldable[G]): F[Unit]
Delete consumer groups from the cluster.
- abstract def deleteTopic(topic: String): F[Unit]
Deletes the specified topic.
- abstract def deleteTopics[G[_]](topics: G[String])(implicit G: Foldable[G]): F[Unit]
Deletes the specified topics.
- abstract def describeAcls(filter: AclBindingFilter): F[List[AclBinding]]
Describes the ACLs based on the specified filters, returning a
List
ofAclBinding
entries matched - abstract def describeCluster: DescribeCluster[F]
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
- abstract def describeConfigs[G[_]](resources: G[ConfigResource])(implicit G: Foldable[G]): F[Map[ConfigResource, List[ConfigEntry]]]
Describes the configurations for the specified resources.
- abstract def describeConsumerGroups[G[_]](groupIds: G[String])(implicit G: Foldable[G]): F[Map[String, ConsumerGroupDescription]]
Describes the consumer groups with the specified group ids, returning a
Map
with group ids as keys, andConsumerGroupDescription
s as values. - abstract def describeTopics[G[_]](topics: G[String])(implicit G: Foldable[G]): F[Map[String, TopicDescription]]
Describes the topics with the specified topic names, returning a
Map
with topic names as keys, andTopicDescription
s as values. - abstract def listConsumerGroupOffsets(groupId: String): ListConsumerGroupOffsets[F]
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
- abstract def listConsumerGroups: ListConsumerGroups[F]
Lists consumer groups.
Lists consumer groups. Returns group ids using:
listConsumerGroups.groupIds
or
ConsumerGroupListing
s using the following.listConsumerGroups.listings
- abstract def listTopics: ListTopics[F]
Lists topics.
Lists topics. Returns topic names using:
listTopics.names
or
TopicListing
s using:listTopics.listings
or a
Map
of topic names toTopicListing
s using the following.listTopics.namesToListings
If you want to include internal topics, first use
includeInternal
.listTopics.includeInternal.listings
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()