Class RetentionConfig (0.4.1)

RetentionConfig(mapping=None, *, ignore_unknown_fields=False, **kwargs)

The settings for a topic's message retention.

Attributes

NameDescription
per_partition_bytes int
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.
period google.protobuf.duration_pb2.Duration
How long a published message is retained. If unset, messages will be retained as long as the bytes retained for each partition is below per_partition_bytes.