public class AppVersionValidator extends Object
Default is to use SemanticVersion major version for checking compatibility.
| Modifier and Type | Field and Description |
|---|---|
static AppVersionValidator |
SEMANTIC_VERSIONING_VALIDATOR
Singleton instance of
AppVersionValidator version which can be used to avoid allocation. |
| Constructor and Description |
|---|
AppVersionValidator() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isVersionCompatible(int contextAppVersion,
int appVersionUnderTest)
Check version compatibility between configured context appVersion and appVersion in
new leadership term or snapshot.
|
public static final AppVersionValidator SEMANTIC_VERSIONING_VALIDATOR
AppVersionValidator version which can be used to avoid allocation.public boolean isVersionCompatible(int contextAppVersion,
int appVersionUnderTest)
contextAppVersion - configured appVersion value from context.appVersionUnderTest - to check against configured appVersion.Copyright © 2014-2023 Real Logic Limited. All Rights Reserved.