Package org.apache.kafka.clients.admin
Class FeatureUpdate
- java.lang.Object
-
- org.apache.kafka.clients.admin.FeatureUpdate
-
public class FeatureUpdate extends Object
Encapsulates details about an update to a finalized feature.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
FeatureUpdate.UpgradeType
-
Constructor Summary
Constructors Constructor Description FeatureUpdate(short maxVersionLevel, boolean allowDowngrade)
Deprecated.FeatureUpdate(short maxVersionLevel, FeatureUpdate.UpgradeType upgradeType)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
allowDowngrade()
Deprecated.boolean
equals(Object other)
int
hashCode()
short
maxVersionLevel()
String
toString()
FeatureUpdate.UpgradeType
upgradeType()
-
-
-
Constructor Detail
-
FeatureUpdate
@Deprecated public FeatureUpdate(short maxVersionLevel, boolean allowDowngrade)
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
public FeatureUpdate(short maxVersionLevel, FeatureUpdate.UpgradeType upgradeType)
- 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 Detail
-
maxVersionLevel
public short maxVersionLevel()
-
allowDowngrade
@Deprecated public boolean allowDowngrade()
Deprecated.
-
upgradeType
public FeatureUpdate.UpgradeType upgradeType()
-
-