Class AutoScalePolicyOverride

java.lang.Object
org.apache.pulsar.common.policies.data.AutoScalePolicyOverride

public final class AutoScalePolicyOverride extends Object
Override of the scalable-topic auto split/merge policy (PIP-483), settable at the namespace level (field on Policies) and at the topic level (field on the scalable-topic metadata).

Every field is optional: an unset (null) field falls through to the next resolution layer — topic override → namespace override → broker configuration. Setting enabled = false opts the namespace or topic out of auto split/merge entirely.

The resolved policy must satisfy the same invariants as the broker configuration (positive split thresholds, split thresholds strictly above merge thresholds, minSegments <= maxSegments, non-negative cooldowns); an override that would violate them is rejected when it is set.

  • Constructor Details

    • AutoScalePolicyOverride

      public AutoScalePolicyOverride()