Class RepartitionTopicConfig
- java.lang.Object
-
- org.apache.kafka.streams.processor.internals.InternalTopicConfig
-
- org.apache.kafka.streams.processor.internals.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 org.apache.kafka.streams.processor.internals.InternalTopicConfig
name, numberOfPartitions
-
-
-
-
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 classInternalTopicConfig
- 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 classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classInternalTopicConfig
-
-