Interface Topic.RetentionConfigOrBuilder (1.9.0)

public static interface Topic.RetentionConfigOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getPerPartitionBytes()

public abstract long getPerPartitionBytes()

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.

int64 per_partition_bytes = 1;

Returns
TypeDescription
long

The perPartitionBytes.

getPeriod()

public abstract Duration getPeriod()

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.

.google.protobuf.Duration period = 2;

Returns
TypeDescription
Duration

The period.

getPeriodOrBuilder()

public abstract DurationOrBuilder getPeriodOrBuilder()

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.

.google.protobuf.Duration period = 2;

Returns
TypeDescription
DurationOrBuilder

hasPeriod()

public abstract boolean hasPeriod()

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.

.google.protobuf.Duration period = 2;

Returns
TypeDescription
boolean

Whether the period field is set.