接口 TopicMetadata


@Public @Stable public interface TopicMetadata
Metadata of a topic that can be used for message routing.
  • 方法概要

    修饰符和类型
    方法
    说明
    int
    Return the number of partitions per topic.
  • 方法详细资料

    • numPartitions

      int numPartitions()
      Return the number of partitions per topic.
      返回:
      the number of partitions per topic.