LiteTopicRetentionConfig

data class LiteTopicRetentionConfig(val perPartitionBytes: String, val period: String? = null)

Constructors

Link copied to clipboard
constructor(perPartitionBytes: String, period: String? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val period: String? = null

How long a published message is retained. If unset, messages will be retained as long as the bytes retained for each partition is below perPartitionBytes. A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "3.5s".

Link copied to clipboard

The provisioned storage, in bytes, per partition. If the number of bytes stored in any of the topic's partitions grows beyond this value, older messages will be dropped to make room for newer ones, regardless of the value of period.