Package org.apache.kafka.clients.admin
Class FeatureUpdate
java.lang.Object
org.apache.kafka.clients.admin.FeatureUpdate
Encapsulates details about an update to a finalized feature.
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionFeatureUpdate
(short maxVersionLevel, boolean allowDowngrade) Deprecated.FeatureUpdate
(short maxVersionLevel, FeatureUpdate.UpgradeType upgradeType) -
Method Summary
-
Constructor Details
-
FeatureUpdate
Deprecated.- Parameters:
maxVersionLevel
- the new maximum version level for the finalized feature. a value of zero is special and indicates that the update is intended to delete the finalized feature, and should be accompanied by setting the allowDowngrade flag to true.allowDowngrade
- - true, if this feature update was meant to downgrade the existing maximum version level of the finalized feature. Only "safe" downgrades are enabled with this boolean. SeeFeatureUpdate(short, UpgradeType)
- false, otherwise.
-
FeatureUpdate
- Parameters:
maxVersionLevel
- The new maximum version level for the finalized feature. a value of zero is special and indicates that the update is intended to delete the finalized feature, and should be accompanied by setting the upgradeType to safe or unsafe.upgradeType
- Indicate what kind of upgrade should be performed in this operation. - UPGRADE: upgrading the feature level - SAFE_DOWNGRADE: only downgrades which do not result in metadata loss are permitted - UNSAFE_DOWNGRADE: any downgrade, including those which may result in metadata loss, are permitted
-
-
Method Details