Class PartitionedTopicMetadata
java.lang.Object
org.apache.pulsar.common.partition.PartitionedTopicMetadata
Metadata of a partitioned topic.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final int
A topic with '0' partitions is treated like non-partitioned topic.int
-
Constructor Summary
ConstructorDescriptionPartitionedTopicMetadata
(int partitions) PartitionedTopicMetadata
(int partitions, Map<String, String> properties) -
Method Summary
-
Field Details
-
MEDIA_TYPE
- See Also:
-
partitions
public int partitions -
properties
-
NON_PARTITIONED
public static final int NON_PARTITIONEDA topic with '0' partitions is treated like non-partitioned topic.- See Also:
-
-
Constructor Details
-
PartitionedTopicMetadata
public PartitionedTopicMetadata() -
PartitionedTopicMetadata
public PartitionedTopicMetadata(int partitions) -
PartitionedTopicMetadata
-