io.vertx.kafka.admin

## Class TopicDescription

- java.lang.Object
- - io.vertx.kafka.admin.TopicDescription

-     public class TopicDescription
      extends Object

  A detailed description of a single topic in the cluster

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `TopicDescription()` Constructor
    `TopicDescription(boolean isInternal, String name, List<TopicPartitionInfo> partitions)` Constructor
    `TopicDescription(JsonObject json)` Constructor (from JSON representation)

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `String` | `getName()`
    `List<TopicPartitionInfo>` | `getPartitions()`
    `boolean` | `isInternal()`
    `TopicDescription` | `setInternal(boolean internal)` Set whether the topic is internal to Kafka.
    `TopicDescription` | `setName(String name)` Set the name of the topic.
    `TopicDescription` | `setPartitions(List<TopicPartitionInfo> partitions)` Set A list of partitions where the index represents the partition id and the element contains leadership and replica information for that partition.
    `JsonObject` | `toJson()` Convert object to JSON representation
    `String` | `toString()`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### TopicDescription

          public TopicDescription()

      Constructor

    - #### TopicDescription

          public TopicDescription(boolean isInternal,
                                  String name,
                                  List<TopicPartitionInfo> partitions)

      Constructor
      Parameters:
        `isInternal` - Whether the topic is internal to Kafka.
        `name` - The name of the topic.
        `partitions` - A list of partitions where the index represents the partition id and the element contains leadership and replica information for that partition.

    - #### TopicDescription

          public TopicDescription(JsonObject json)

      Constructor (from JSON representation)
      Parameters:
        `json` - JSON representation

  - ### Method Detail

    - #### isInternal

          public boolean isInternal()

      Returns:
        Whether the topic is internal to Kafka.

    - #### setInternal

          public TopicDescription setInternal(boolean internal)

      Set whether the topic is internal to Kafka.
      Parameters:
        `internal` - Whether the topic is internal to Kafka.
      Returns:
        current instance of the class to be fluent

    - #### getName

          public String getName()

      Returns:
        The name of the topic.

    - #### setName

          public TopicDescription setName(String name)

      Set the name of the topic.
      Parameters:
        `name` - The name of the topic.
      Returns:
        current instance of the class to be fluent

    - #### getPartitions

          public List<TopicPartitionInfo> getPartitions()

      Returns:
        A list of partitions where the index represents the partition id and the element contains leadership and replica information for that partition.

    - #### setPartitions

          public TopicDescription setPartitions(List<TopicPartitionInfo> partitions)

      Set A list of partitions where the index represents the partition id and the element contains leadership and replica information for that partition.
      Parameters:
        `partitions` - A list of partitions where the index represents the partition id and the element contains leadership and replica information for that partition.
      Returns:
        current instance of the class to be fluent

    - #### toJson

          public JsonObject toJson()

      Convert object to JSON representation
      Returns:
        JSON representation

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

Copyright © 2020 Eclipse. All rights reserved.