trait AdminClient extends AnyRef
- Alphabetic
- By Inheritance
- AdminClient
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Abstract Value Members
- abstract def alterConfigs(configs: Map[ConfigResource, KafkaConfig], options: AlterConfigsOptions): Task[Unit]
Update the configuration for the specified resources.
Update the configuration for the specified resources.
If you are using brokers with version 2.3.0 or higher, please use incrementalAlterConfigs instead.
- abstract def alterConfigsAsync(configs: Map[ConfigResource, KafkaConfig], options: AlterConfigsOptions): Task[Map[ConfigResource, Task[Unit]]]
Update the configuration for the specified resources async.
Update the configuration for the specified resources async.
If you are using brokers with version 2.3.0 or higher, please use incrementalAlterConfigs instead.
- abstract def alterConsumerGroupOffsets(groupId: String, offsets: Map[TopicPartition, OffsetAndMetadata], options: Option[AlterConsumerGroupOffsetsOptions] = None): Task[Unit]
Alter offsets for the specified partitions and consumer group.
- abstract def createAcls(acls: Set[AclBinding], options: Option[CreateAclOptions] = None): Task[Unit]
Creates access control lists (ACLs) which are bound to specific resources.
- abstract def createAclsAsync(acls: Set[AclBinding], options: Option[CreateAclOptions] = None): Task[Map[AclBinding, Task[Unit]]]
Creates access control lists (ACLs) which are bound to specific resources async.
- abstract def createPartitions(newPartitions: Map[String, NewPartitions], options: Option[CreatePartitionsOptions] = None): Task[Unit]
Add new partitions to a topic.
- abstract def createTopic(newTopic: NewTopic, validateOnly: Boolean = false): Task[Unit]
Create a single topic.
- abstract def createTopics(newTopics: Iterable[NewTopic], options: Option[CreateTopicsOptions] = None): Task[Unit]
Create multiple topics.
- abstract def deleteAcls(filters: Set[AclBindingFilter], options: Option[DeleteAclsOptions] = None): Task[Set[AclBinding]]
Deletes access control lists (ACLs) according to the supplied filters.
- abstract def deleteAclsAsync(filters: Set[AclBindingFilter], options: Option[DeleteAclsOptions] = None): Task[Map[AclBindingFilter, Task[Map[AclBinding, Option[Throwable]]]]]
Deletes access control lists (ACLs) according to the supplied filters async.
- abstract def deleteConsumerGroups(groupIds: Iterable[String], options: Option[DeleteConsumerGroupOptions] = None): Task[Unit]
Delete consumer groups.
- abstract def deleteRecords(recordsToDelete: Map[TopicPartition, RecordsToDelete], deleteRecordsOptions: Option[DeleteRecordsOptions] = None): Task[Unit]
Delete records.
- abstract def deleteTopic(topic: String): Task[Unit]
Delete a single topic.
- abstract def deleteTopics(topics: Iterable[String], options: Option[DeleteTopicsOptions] = None): Task[Unit]
Delete multiple topics.
- abstract def describeAcls(filter: AclBindingFilter, options: Option[DescribeAclOptions] = None): Task[Set[AclBinding]]
- abstract def describeClusterAuthorizedOperations(options: Option[DescribeClusterOptions] = None): Task[Set[AclOperation]]
Get the cluster authorized operations.
- abstract def describeClusterController(options: Option[DescribeClusterOptions] = None): Task[Option[Node]]
Get the cluster controller.
- abstract def describeClusterId(options: Option[DescribeClusterOptions] = None): Task[String]
Get the cluster id.
- abstract def describeClusterNodes(options: Option[DescribeClusterOptions] = None): Task[List[Node]]
Get the cluster nodes.
- abstract def describeConfigs(configResources: Iterable[ConfigResource], options: Option[DescribeConfigsOptions] = None): Task[Map[ConfigResource, KafkaConfig]]
Get the configuration for the specified resources.
- abstract def describeConfigsAsync(configResources: Iterable[ConfigResource], options: Option[DescribeConfigsOptions] = None): Task[Map[ConfigResource, Task[KafkaConfig]]]
Get the configuration for the specified resources async.
- abstract def describeConsumerGroups(groupIds: List[String], options: Option[DescribeConsumerGroupsOptions]): Task[Map[String, ConsumerGroupDescription]]
Describe the specified consumer groups.
- abstract def describeConsumerGroups(groupIds: String*): Task[Map[String, ConsumerGroupDescription]]
Describe the specified consumer groups.
- abstract def describeLogDirs(brokersId: Iterable[Int]): ZIO[Any, Throwable, Map[Int, Map[String, LogDirDescription]]]
Describe the log directories of the specified brokers
- abstract def describeLogDirsAsync(brokersId: Iterable[Int]): ZIO[Any, Throwable, Map[Int, Task[Map[String, LogDirDescription]]]]
Describe the log directories of the specified brokers async
- abstract def describeTopics(topicNames: Iterable[String], options: Option[DescribeTopicsOptions] = None): Task[Map[String, TopicDescription]]
Describe the specified topics.
- abstract def incrementalAlterConfigs(configs: Map[ConfigResource, Iterable[AlterConfigOp]], options: AlterConfigsOptions): Task[Unit]
Incrementally update the configuration for the specified resources.
Incrementally update the configuration for the specified resources. Only supported by brokers with version 2.3.0 or higher. Use alterConfigs otherwise.
- abstract def incrementalAlterConfigsAsync(configs: Map[ConfigResource, Iterable[AlterConfigOp]], options: AlterConfigsOptions): Task[Map[ConfigResource, Task[Unit]]]
Incrementally update the configuration for the specified resources async.
Incrementally update the configuration for the specified resources async. Only supported by brokers with version 2.3.0 or higher. Use alterConfigsAsync otherwise.
- abstract def listConsumerGroupOffsets(groupSpecs: Map[String, ListConsumerGroupOffsetsSpec], options: ListConsumerGroupOffsetsOptions): Task[Map[String, Map[TopicPartition, OffsetAndMetadata]]]
Given a mapping of consumer group IDs and list of partitions, list the consumer group offsets available in the cluster for the specified consumer groups and partitions.
- abstract def listConsumerGroupOffsets(groupSpecs: Map[String, ListConsumerGroupOffsetsSpec]): Task[Map[String, Map[TopicPartition, OffsetAndMetadata]]]
Given a mapping of consumer group IDs and list of partitions, list the consumer group offsets available in the cluster for the specified consumer groups and partitions.
- abstract def listConsumerGroupOffsets(groupId: String, options: Option[ListConsumerGroupOffsetsOptions] = None): Task[Map[TopicPartition, OffsetAndMetadata]]
List Consumer Group offsets for the specified partitions.
- abstract def listConsumerGroups(options: Option[ListConsumerGroupsOptions] = None): Task[List[ConsumerGroupListing]]
List the consumer groups in the cluster.
- abstract def listOffsets(topicPartitionOffsets: Map[TopicPartition, OffsetSpec], options: Option[ListOffsetsOptions] = None): Task[Map[TopicPartition, ListOffsetsResultInfo]]
List offset for the specified partitions.
- abstract def listOffsetsAsync(topicPartitionOffsets: Map[TopicPartition, OffsetSpec], options: Option[ListOffsetsOptions] = None): Task[Map[TopicPartition, Task[ListOffsetsResultInfo]]]
List offset for the specified partitions.
- abstract def listTopics(listTopicsOptions: Option[ListTopicsOptions] = None): Task[Map[String, TopicListing]]
List the topics in the cluster.
- abstract def metrics: Task[Map[MetricName, Metric]]
Retrieves metrics for the underlying AdminClient
- abstract def removeMembersFromConsumerGroup(groupId: String, membersToRemove: Set[String]): Task[Unit]
Remove the specified members from a consumer group.
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()