Class InternalTopicConfig
- java.lang.Object
-
- org.apache.kafka.streams.processor.internals.InternalTopicConfig
-
- Direct Known Subclasses:
RepartitionTopicConfig
,UnwindowedChangelogTopicConfig
,WindowedChangelogTopicConfig
public abstract class InternalTopicConfig extends 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 Map<String,String>
getProperties(Map<String,String> defaultProperties, long additionalRetentionMs)
Get the configured properties for this topic.boolean
hasEnforcedNumberOfPartitions()
String
name()
Optional<Integer>
numberOfPartitions()
void
setNumberOfPartitions(int numberOfPartitions)
String
toString()
-
-
-
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()
-
name
public String name()
-
setNumberOfPartitions
public void setNumberOfPartitions(int numberOfPartitions)
-
-