import org.apache.kafka.common.config.TopicConfig
assert(TopicConfig.CLEANUP_POLICY_CONFIG == "cleanup.policy")
TopicConfig — Topic-Level Configuration Keys
TopicConfig
are the keys for a topic-level configuration of a topic (and override cluster-wide defaults that are mostly different by names with log.
prefix).
Note
|
As the TopicConfig itself says: "Eventually this should replace LogConfig.scala." |
Import org.apache.kafka.common.config.TopicConfig
to reference the keys.
Name | Description |
---|---|
|
Used when:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Maximum size (in bytes) of a partition to grow before discarding old log segments and free up space for topics with delete retention policy. Default: By default there is no size limit only a time limit. Since this limit is enforced at the partition level, multiply it by the number of partitions to compute the topic retention in bytes. Alias of LogConfig.RetentionBytesProp Cluster-wide property: log.retention.bytes Used exclusively when |
|
|
|
Used when:
|
|
|
|
|
|
|
|