Package com.linkedin.venice.pubsub
Class PubSubTopicConfiguration
java.lang.Object
com.linkedin.venice.pubsub.PubSubTopicConfiguration
- All Implemented Interfaces:
Cloneable
Represents a
PubSubTopic configuration.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()booleanvoidsetLogCompacted(boolean isLogCompacted) voidsetMaxLogCompactionLagMs(Optional<Long> maxLogCompactionLagMs) The maximum time a message will remain ineligible for compaction in the log.voidsetMinInSyncReplicas(Optional<Integer> minInSyncReplicas) voidsetMinLogCompactionLagMs(Long minLogCompactionLagMs) voidsetRetentionInMs(Optional<Long> retentionInMs) toString()
-
Constructor Details
-
PubSubTopicConfiguration
-
-
Method Details
-
isLogCompacted
public boolean isLogCompacted()- Returns:
- whether the topic is log compacted
-
minInSyncReplicas
- Returns:
- min number of replicas that must be in sync before a message is considered committed
-
retentionInMs
- Returns:
- retention time for data in this topic
-
minLogCompactionLagMs
- Returns:
- min log compaction lag in ms
-
setLogCompacted
public void setLogCompacted(boolean isLogCompacted) - Parameters:
isLogCompacted- whether the topic is log compacted
-
setRetentionInMs
- Parameters:
retentionInMs- retention time for data in this topic
-
setMinInSyncReplicas
- Parameters:
minInSyncReplicas- min number of replicas that must be in sync before a message is considered committed
-
setMinLogCompactionLagMs
- Parameters:
minLogCompactionLagMs- min log compaction lag in ms
-
getMaxLogCompactionLagMs
-
setMaxLogCompactionLagMs
The maximum time a message will remain ineligible for compaction in the log. Only applicable for logs that are being compacted. -
toString
-
clone
- Overrides:
clonein classObject- Throws:
CloneNotSupportedException
-