Class PartitionedTopicMetadata

java.lang.Object
org.apache.pulsar.common.partition.PartitionedTopicMetadata

public class PartitionedTopicMetadata extends Object
Metadata of a partitioned topic.
  • Field Details

    • MEDIA_TYPE

      public static final String MEDIA_TYPE
      See Also:
    • partitions

      public int partitions
    • properties

      public Map<String,String> properties
    • NON_PARTITIONED

      public static final int NON_PARTITIONED
      A topic with '0' partitions is treated like non-partitioned topic.
      See Also:
  • Constructor Details

    • PartitionedTopicMetadata

      public PartitionedTopicMetadata()
    • PartitionedTopicMetadata

      public PartitionedTopicMetadata(int partitions)
    • PartitionedTopicMetadata

      public PartitionedTopicMetadata(int partitions, Map<String,String> properties)