Options
All
  • Public
  • Public/Protected
  • All
Menu

Class NewTopic

A new topic to be created

Hierarchy

  • NewTopic

Index

Constructors

constructor

  • Returns NewTopic

  • Parameters

    Returns NewTopic

Methods

getConfig

  • getConfig(): {}
  • Set the configuration for the new topic or null if no configs ever specified

    Returns {}

    • [key: string]: string

getName

  • getName(): string
  • Set the name of the topic to be created

    Returns string

getNumPartitions

  • getNumPartitions(): number
  • Set the number of partitions for the new topic or -1 if a replica assignment has been specified

    Returns number

getReplicationFactor

  • getReplicationFactor(): number
  • Set the replication factor for the new topic or -1 if a replica assignment has been specified

    Returns number

setConfig

  • Set the configuration for the new topic or null if no configs ever specified

    Parameters

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

    Returns NewTopic

setName

  • Set the name of the topic to be created

    Parameters

    • name: string

    Returns NewTopic

setNumPartitions

  • setNumPartitions(numPartitions: number): NewTopic
  • Set the number of partitions for the new topic or -1 if a replica assignment has been specified

    Parameters

    • numPartitions: number

    Returns NewTopic

setReplicationFactor

  • setReplicationFactor(replicationFactor: number): NewTopic
  • Set the replication factor for the new topic or -1 if a replica assignment has been specified

    Parameters

    • replicationFactor: number

    Returns NewTopic

toJson

  • toJson(): {}
  • Returns {}

    • [key: string]: any

Generated using TypeDoc