Options
All
  • Public
  • Public/Protected
  • All
Menu

Class KafkaAdminClient

Vert.x Kafka Admin client implementation

Hierarchy

  • KafkaAdminClient

Index

Methods

close

  • close(): PromiseLike<void>
  • close(handler: ((res: AsyncResult<void>) => void) | Handler<AsyncResult<void>>): void
  • close(timeout: number): PromiseLike<void>
  • close(timeout: number, handler: ((res: AsyncResult<void>) => void) | Handler<AsyncResult<void>>): void
  • Close the admin client

    Returns PromiseLike<void>

  • Close the admin client

    Parameters

    • handler: ((res: AsyncResult<void>) => void) | Handler<AsyncResult<void>>

    Returns void

  • Close the admin client

    Parameters

    • timeout: number

    Returns PromiseLike<void>

  • Close the admin client

    Parameters

    • timeout: number
    • handler: ((res: AsyncResult<void>) => void) | Handler<AsyncResult<void>>

    Returns void

createAcls

  • createAcls(aclBindings: any): PromiseLike<any>
  • createAcls(aclBindings: any, completionHandler: ((res: AsyncResult<any>) => void) | Handler<AsyncResult<any>>): void
  • Create the ACL rules.

    Parameters

    • aclBindings: any

    Returns PromiseLike<any>

  • Create the ACL rules.

    Parameters

    • aclBindings: any
    • completionHandler: ((res: AsyncResult<any>) => void) | Handler<AsyncResult<any>>

    Returns void

createPartitions

  • createPartitions(partitions: {}): PromiseLike<void>
  • createPartitions(partitions: {}, completionHandler: ((res: AsyncResult<void>) => void) | Handler<AsyncResult<void>>): void
  • Creates a batch of new partitions in the Kafka topic

    Parameters

    Returns PromiseLike<void>

  • Creates a batch of new partitions in the Kafka topic

    Parameters

    • partitions: {}
    • completionHandler: ((res: AsyncResult<void>) => void) | Handler<AsyncResult<void>>

    Returns void

createTopics

  • createTopics(topics: NewTopic): PromiseLike<void>
  • createTopics(topics: NewTopic, completionHandler: ((res: AsyncResult<void>) => void) | Handler<AsyncResult<void>>): void
  • Creates a batch of new Kafka topics

    Parameters

    Returns PromiseLike<void>

  • Creates a batch of new Kafka topics

    Parameters

    • topics: NewTopic
    • completionHandler: ((res: AsyncResult<void>) => void) | Handler<AsyncResult<void>>

    Returns void

deleteAcls

  • deleteAcls(aclBindings: any): PromiseLike<any>
  • deleteAcls(aclBindings: any, completionHandler: ((res: AsyncResult<any>) => void) | Handler<AsyncResult<any>>): void
  • Delete the ACL rules.

    Parameters

    • aclBindings: any

    Returns PromiseLike<any>

  • Delete the ACL rules.

    Parameters

    • aclBindings: any
    • completionHandler: ((res: AsyncResult<any>) => void) | Handler<AsyncResult<any>>

    Returns void

deleteConsumerGroupOffsets

  • deleteConsumerGroupOffsets(groupId: string, partitions: TopicPartition): PromiseLike<void>
  • deleteConsumerGroupOffsets(groupId: string, partitions: TopicPartition, completionHandler: ((res: AsyncResult<void>) => void) | Handler<AsyncResult<void>>): void
  • 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.

    Parameters

    Returns PromiseLike<void>

  • 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.

    Parameters

    • groupId: string
    • partitions: TopicPartition
    • completionHandler: ((res: AsyncResult<void>) => void) | Handler<AsyncResult<void>>

    Returns void

deleteConsumerGroups

  • deleteConsumerGroups(groupIds: string): PromiseLike<void>
  • deleteConsumerGroups(groupIds: string, completionHandler: ((res: AsyncResult<void>) => void) | Handler<AsyncResult<void>>): void
  • Delete consumer groups from the cluster.

    Parameters

    • groupIds: string

    Returns PromiseLike<void>

  • Delete consumer groups from the cluster.

    Parameters

    • groupIds: string
    • completionHandler: ((res: AsyncResult<void>) => void) | Handler<AsyncResult<void>>

    Returns void

deleteTopics

  • deleteTopics(topicNames: string): PromiseLike<void>
  • deleteTopics(topicNames: string, completionHandler: ((res: AsyncResult<void>) => void) | Handler<AsyncResult<void>>): void
  • Deletes a batch of Kafka topics

    Parameters

    • topicNames: string

    Returns PromiseLike<void>

  • Deletes a batch of Kafka topics

    Parameters

    • topicNames: string
    • completionHandler: ((res: AsyncResult<void>) => void) | Handler<AsyncResult<void>>

    Returns void

describeAcls

  • describeAcls(aclBindingFilter: any): PromiseLike<any>
  • describeAcls(aclBindingFilter: any, completionHandler: ((res: AsyncResult<any>) => void) | Handler<AsyncResult<any>>): void
  • Describe the ACL rules.

    Parameters

    • aclBindingFilter: any

    Returns PromiseLike<any>

  • Describe the ACL rules.

    Parameters

    • aclBindingFilter: any
    • completionHandler: ((res: AsyncResult<any>) => void) | Handler<AsyncResult<any>>

    Returns void

describeCluster

  • Describe the nodes in the cluster with the default options

    Returns PromiseLike<ClusterDescription>

  • Describe the nodes in the cluster with the default options

    Parameters

    Returns void

  • Like {@link KafkaAdminClient#describeCluster} but allows customized options.

    Parameters

    Returns PromiseLike<ClusterDescription>

  • Like {@link KafkaAdminClient#describeCluster} but allows customized options.

    Parameters

    Returns void

describeConsumerGroups

  • describeConsumerGroups(groupIds: string): PromiseLike<{}>
  • describeConsumerGroups(groupIds: string, completionHandler: ((res: AsyncResult<{}>) => void) | Handler<AsyncResult<{}>>): void
  • describeConsumerGroups(groupIds: string, options: DescribeConsumerGroupsOptions): PromiseLike<{}>
  • describeConsumerGroups(groupIds: string, options: DescribeConsumerGroupsOptions, completionHandler: ((res: AsyncResult<{}>) => void) | Handler<AsyncResult<{}>>): void
  • Describe some group ids in the cluster, with the default options

    Parameters

    • groupIds: string

    Returns PromiseLike<{}>

  • Describe some group ids in the cluster, with the default options

    Parameters

    • groupIds: string
    • completionHandler: ((res: AsyncResult<{}>) => void) | Handler<AsyncResult<{}>>

    Returns void

  • Like {@link KafkaAdminClient#describeConsumerGroups} but allows customized options

    Parameters

    Returns PromiseLike<{}>

  • Like {@link KafkaAdminClient#describeConsumerGroups} but allows customized options

    Parameters

    Returns void

describeTopics

  • describeTopics(topicNames: string): PromiseLike<{}>
  • describeTopics(topicNames: string, completionHandler: ((res: AsyncResult<{}>) => void) | Handler<AsyncResult<{}>>): void
  • describeTopics(topicNames: string, options: DescribeTopicsOptions): PromiseLike<{}>
  • describeTopics(topicNames: string, options: DescribeTopicsOptions, completionHandler: ((res: AsyncResult<{}>) => void) | Handler<AsyncResult<{}>>): void
  • Describe some topics in the cluster, with the default options.

    Parameters

    • topicNames: string

    Returns PromiseLike<{}>

  • Describe some topics in the cluster, with the default options.

    Parameters

    • topicNames: string
    • completionHandler: ((res: AsyncResult<{}>) => void) | Handler<AsyncResult<{}>>

    Returns void

  • Like {@link KafkaAdminClient#describeTopics} but allows for customised otions

    Parameters

    Returns PromiseLike<{}>

  • Like {@link KafkaAdminClient#describeTopics} but allows for customised otions

    Parameters

    • topicNames: string
    • options: DescribeTopicsOptions
    • completionHandler: ((res: AsyncResult<{}>) => void) | Handler<AsyncResult<{}>>

    Returns void

listConsumerGroups

  • Get the the consumer groups available in the cluster with the default options

    Returns PromiseLike<ConsumerGroupListing>

  • Get the the consumer groups available in the cluster with the default options

    Parameters

    Returns void

listTopics

  • listTopics(): PromiseLike<string>
  • listTopics(completionHandler: ((res: AsyncResult<string>) => void) | Handler<AsyncResult<string>>): void
  • List the topics available in the cluster with the default options.

    Returns PromiseLike<string>

  • List the topics available in the cluster with the default options.

    Parameters

    • completionHandler: ((res: AsyncResult<string>) => void) | Handler<AsyncResult<string>>

    Returns void

Static create

  • Create a new KafkaAdminClient instance

    Parameters

    • vertx: Vertx
    • config: {}
      • [key: string]: string

    Returns KafkaAdminClient

Generated using TypeDoc