Class RepartitionTopicConfig


  • public class RepartitionTopicConfig
    extends InternalTopicConfig
    RepartitionTopicConfig captures the properties required for configuring the repartition topics.
    • Constructor Summary

      Constructors 
      Constructor Description
      RepartitionTopicConfig​(java.lang.String name, java.util.Map<java.lang.String,​java.lang.String> topicConfigs)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)  
      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.
      int hashCode()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • RepartitionTopicConfig

        public RepartitionTopicConfig​(java.lang.String name,
                                      java.util.Map<java.lang.String,​java.lang.String> topicConfigs)
    • Method Detail

      • getProperties

        public 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
        Specified by:
        getProperties in class InternalTopicConfig
        Parameters:
        additionalRetentionMs - - added to retention to allow for clock drift etc
        Returns:
        Properties to be used when creating the topic
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object