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
ConstructorsConstructorDescriptionPubSubTopicConfiguration(Optional<Long> retentionInMs, boolean isLogCompacted, Optional<Integer> minInSyncReplicas, Long minLogCompactionLagMs, Optional<Long> maxLogCompactionLagMs) PubSubTopicConfiguration(Optional<Long> retentionInMs, boolean isLogCompacted, Optional<Integer> minInSyncReplicas, Long minLogCompactionLagMs, Optional<Long> maxLogCompactionLagMs, boolean useAlternativeBackend) PubSubTopicConfiguration(Optional<Long> retentionInMs, boolean isLogCompacted, Optional<Integer> minInSyncReplicas, Long minLogCompactionLagMs, Optional<Long> maxLogCompactionLagMs, boolean useAlternativeBackend, Optional<Boolean> uncleanLeaderElectionEnable) -
Method Summary
Modifier and TypeMethodDescriptionclone()booleanbooleanvoidsetLogCompacted(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) voidsetUncleanLeaderElectionEnable(Optional<Boolean> uncleanLeaderElectionEnable) toString()
-
Constructor Details
-
PubSubTopicConfiguration
-
PubSubTopicConfiguration
-
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
-
getUncleanLeaderElectionEnable
-
setUncleanLeaderElectionEnable
-
setMinLogCompactionLagMs
- Parameters:
minLogCompactionLagMs- min log compaction lag in ms
-
isUseAlternativeBackend
public boolean isUseAlternativeBackend() -
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
-