Class InternalTopicConfig
- java.lang.Object
-
- org.apache.kafka.streams.processor.internals.InternalTopicConfig
-
- Direct Known Subclasses:
RepartitionTopicConfig
,UnwindowedChangelogTopicConfig
,WindowedChangelogTopicConfig
public abstract class InternalTopicConfig extends java.lang.Object
InternalTopicConfig captures the properties required for configuring the internal topics we create for change-logs and repartitioning etc.
-
-
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()
-
-
-
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 classjava.lang.Object
-
-