public class FeatureUpdate extends Object
Modifier and Type | Class and Description |
---|---|
static class |
FeatureUpdate.UpgradeType |
Constructor and Description |
---|
FeatureUpdate(short maxVersionLevel,
boolean allowDowngrade)
Deprecated.
|
FeatureUpdate(short maxVersionLevel,
FeatureUpdate.UpgradeType upgradeType) |
Modifier and Type | Method and Description |
---|---|
boolean |
allowDowngrade()
Deprecated.
|
boolean |
equals(Object other) |
int |
hashCode() |
short |
maxVersionLevel() |
String |
toString() |
FeatureUpdate.UpgradeType |
upgradeType() |
@Deprecated public FeatureUpdate(short maxVersionLevel, boolean allowDowngrade)
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. See FeatureUpdate(short, UpgradeType)
- false, otherwise.public FeatureUpdate(short maxVersionLevel, FeatureUpdate.UpgradeType upgradeType)
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 permittedpublic short maxVersionLevel()
@Deprecated public boolean allowDowngrade()
public FeatureUpdate.UpgradeType upgradeType()