Interface TopicDescriptor

  • All Superinterfaces:
    java.lang.Cloneable
    All Known Implementing Classes:
    MTopicDescriptor

    public interface TopicDescriptor
    extends java.lang.Cloneable
    A TopicDescriptor contains the details about a topic such as the number of partitions, the timestamptype, log compaction settingetc.
    • Method Detail

      • getPartitions

        int getPartitions()
        Returns:
        the number of partitions for the topic.
      • setPartitions

        void setPartitions​(int numPartitions)
        Sets the number of partitions for the topic.
        Parameters:
        numPartitions - the number of partitions
      • setTimestampType

        void setTimestampType​(TimestampType timestampType)
        Sets timestamp type
        Parameters:
        timestampType - can be createtime or logappendtime
      • getTimestampType

        TimestampType getTimestampType()
        Returns:
        timestampType