Class InternalTopicConfig

    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      abstract java.util.Map<java.lang.String,​java.lang.String> getProperties​(java.util.Map<java.lang.String,​java.lang.String> defaultProperties, long additionalRetentionMs)
      Get the configured properties for this topic.
      java.lang.String name()  
      int numberOfPartitions()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Method Detail

      • getProperties

        public abstract java.util.Map<java.lang.String,​java.lang.String> getProperties​(java.util.Map<java.lang.String,​java.lang.String> defaultProperties,
                                                                                             long additionalRetentionMs)
        Get the configured properties for this topic. If rententionMs 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
      • name

        public java.lang.String name()
      • numberOfPartitions

        public int numberOfPartitions()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object