Package ai.superstream.model
Class TopicConfiguration
java.lang.Object
ai.superstream.model.TopicConfiguration
Represents the configuration for a specific Kafka topic.
-
Constructor Summary
ConstructorsConstructorDescriptionTopicConfiguration(String topicName, int potentialReductionPercentage, long dailyWritesBytes, Map<String, Object> optimizedConfiguration) -
Method Summary
Modifier and TypeMethodDescriptionlongCalculate the potential impact of optimization for this topic.booleanlongintinthashCode()voidsetDailyWritesBytes(long dailyWritesBytes) voidsetOptimizedConfiguration(Map<String, Object> optimizedConfiguration) voidsetPotentialReductionPercentage(int potentialReductionPercentage) voidsetTopicName(String topicName) toString()
-
Constructor Details
-
TopicConfiguration
public TopicConfiguration() -
TopicConfiguration
-
-
Method Details
-
getTopicName
-
setTopicName
-
getPotentialReductionPercentage
public int getPotentialReductionPercentage() -
setPotentialReductionPercentage
public void setPotentialReductionPercentage(int potentialReductionPercentage) -
getDailyWritesBytes
public long getDailyWritesBytes() -
setDailyWritesBytes
public void setDailyWritesBytes(long dailyWritesBytes) -
getOptimizedConfiguration
-
setOptimizedConfiguration
-
calculateImpactScore
public long calculateImpactScore()Calculate the potential impact of optimization for this topic.- Returns:
- The impact score, calculated as potentialReductionPercentage * dailyWritesBytes
-
equals
-
hashCode
public int hashCode() -
toString
-