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 abortTransaction(topicPartition: TopicPartition, producerId: Long, producerEpoch: Short, coordinationEpoch: Int): F[Unit]
Forcefully abort a transaction which is open on a topic partition.
- abstract def addRaftVoter(voterId: Int, voterDirectoryId: Uuid, endpoints: Set[RaftVoterEndpoint], clusterId: Option[String]): F[Unit]
Add a new voter node to the KRaft metadata quorum.
- abstract def alterClientQuotas[G[_]](entries: G[ClientQuotaAlteration])(implicit arg0: Foldable[G]): F[Unit]
Alters client quota configurations with the specified alterations.
- abstract def alterConfigs[G[_]](configs: Map[ConfigResource, G[AlterConfigOp]], validateOnly: Boolean)(implicit arg0: Foldable[G]): F[Unit]
Incrementally update the configuration for the specified resources.
- 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 alterPartitionReassignments(reassignments: Map[TopicPartition, Option[NewPartitionReassignment]]): F[Unit]
Change the reassignments for one or more partitions.
- abstract def alterReplicaLogDirs(replicaAssignment: Map[TopicPartitionReplica, String]): F[Unit]
Change the log directory for the specified replicas.
- abstract def createAcls[G[_]](acls: G[AclBinding])(implicit G: Foldable[G]): F[Unit]
Creates the specified ACLs
- abstract def createDelegationToken(renewers: List[KafkaPrincipal], owner: Option[KafkaPrincipal], maxLifeTime: Option[FiniteDuration]): F[DelegationToken]
Creates a delegation token
- 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 deleteRecords(recordsToDelete: Map[TopicPartition, RecordsToDelete]): F[Unit]
Delete records whose offset is smaller than the given offset of the corresponding partition.
- 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
ListofAclBindingentries matched - abstract def describeClientQuotas(filter: ClientQuotaFilter): F[Map[ClientQuotaEntity, Map[String, Double]]]
Describes all entities matching the provided filter that have at least one client quota configuration value defined.
- 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
Mapwith group ids as keys, andConsumerGroupDescriptions as values. - abstract def describeDelegationToken[G[_]](owners: Option[G[KafkaPrincipal]])(implicit arg0: Foldable[G]): F[List[DelegationToken]]
Describe the delegation tokens.
- abstract def describeFeatures: F[FeatureMetadata]
Describes finalized as well as supported features.
- abstract def describeLogDirs[G[_]](brokers: G[Int])(implicit arg0: Foldable[G]): F[Map[Int, Map[String, LogDirDescription]]]
Query the information of all log directories on the given set of brokers.
- abstract def describeMetadataQuorum: F[QuorumInfo]
Describes the state of the metadata quorum.
- abstract def describeProducers[G[_]](partitions: G[TopicPartition], brokerId: Option[Int])(implicit arg0: Foldable[G]): F[Map[TopicPartition, PartitionProducerState]]
Describe producer state on a set of topic partitions.
- abstract def describeReplicaLogDirs[G[_]](replicas: G[TopicPartitionReplica])(implicit arg0: Foldable[G]): F[Map[TopicPartitionReplica, ReplicaLogDirInfo]]
Query the replica log directory information for the specified replicas.
- 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
Mapwith topic names as keys, andTopicDescriptions as values. - abstract def describeTransactions[G[_]](transactionalIds: G[String])(implicit arg0: Foldable[G]): F[Map[String, TransactionDescription]]
Describe the state of a set of transactional IDs from the respective transaction coordinators, which are dynamically discovered.
- abstract def describeUserScramCredentials(users: Option[List[String]]): F[Map[String, UserScramCredentialsDescription]]
Describe all SASL/SCRAM credentials.
- abstract def electLeaders(electionType: ElectionType, partitions: Set[TopicPartition]): F[Unit]
Elect a replica as leader for topic partitions.
- abstract def expireDelegationToken(hmac: Chunk[Byte], expiryTime: Option[FiniteDuration]): F[Instant]
Expire a delegation token, returning the expiry timestamp.
- abstract def fenceProducers[G[_]](transactionalIds: G[String])(implicit arg0: Foldable[G]): F[Unit]
Fence out all active producers that use any of the provided transactional IDs.
- abstract def listConfigResources: F[List[ConfigResource]]
- 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
ConsumerGroupListings using the following.listConsumerGroups.listings
- abstract def listOffsets(topicPartitionOffsets: Map[TopicPartition, OffsetSpec], isolationLevel: org.apache.kafka.common.IsolationLevel): F[Map[TopicPartition, ListOffsetsResultInfo]]
List offset for the specified partitions and isolation level.
- abstract def listPartitionReassignments(partitionsFilter: Option[Set[TopicPartition]]): F[Map[TopicPartition, PartitionReassignment]]
List the current reassignments for the given partitions.
- abstract def listTopics: ListTopics[F]
Lists topics.
Lists topics. Returns topic names using:
listTopics.names
or
TopicListings using:listTopics.listings
or a
Mapof topic names toTopicListings using the following.listTopics.namesToListings
If you want to include internal topics, first use
includeInternal.listTopics.includeInternal.listings
- abstract def listTransactions(states: Option[Set[TransactionState]], producerIds: Option[Set[Long]], duration: Option[Long]): F[List[TransactionListing]]
List active transactions in the cluster.
- abstract def metrics: F[Map[MetricName, Metric]]
Get the metrics kept by the admin client.
- abstract def removeMembersFromConsumerGroup[G[_]](groupId: String, members: G[MemberToRemove], reason: Option[String])(implicit arg0: Foldable[G]): F[Unit]
Remove members from the consumer group by given member identities.
- abstract def removeRaftVoter(voterId: Int, voterDirectoryId: Uuid, clusterId: Option[String]): F[Unit]
Remove a voter node from the KRaft metadata quorum.
- abstract def renewDelegationToken(hmac: Chunk[Byte], renewTime: Option[FiniteDuration]): F[Instant]
Renew a delegation token and return the expiry timestamp.
- abstract def updateFeatures(features: Map[String, FeatureUpdate], validateOnly: Boolean): F[Unit]
Applies specified updates to finalized features.
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()