Class InternalTopicConfig

    • Method Detail

      • getProperties

        public abstract Map<String,​String> getProperties​(Map<String,​String> defaultProperties,
                                                               long additionalRetentionMs)
        Get the configured properties for this topic. If retentionMs is set then we add additionalRetentionMs to work out the desired retention when cleanup.policy=compact,delete
        Parameters:
        additionalRetentionMs - - added to retention to allow for clock drift etc
        Returns:
        Properties to be used when creating the topic
      • hasEnforcedNumberOfPartitions

        public boolean hasEnforcedNumberOfPartitions()
      • setNumberOfPartitions

        public void setNumberOfPartitions​(int numberOfPartitions)