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
-
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
void
setLogCompacted
(boolean isLogCompacted) void
setMaxLogCompactionLagMs
(Optional<Long> maxLogCompactionLagMs) The maximum time a message will remain ineligible for compaction in the log.void
setMinInSyncReplicas
(Optional<Integer> minInSyncReplicas) void
setMinLogCompactionLagMs
(Long minLogCompactionLagMs) void
setRetentionInMs
(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:
clone
in classObject
- Throws:
CloneNotSupportedException
-