public class Version extends Object
| Modifier and Type | Field and Description |
|---|---|
static Map<String,String> |
VERSION_MAP
The constant VERSION_MAP.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
checkVersion(String version)
Check version string.
|
static long |
convertVersion(String version) |
static long |
convertVersionNotThrowException(String version) |
static String |
getChannelVersion(io.netty.channel.Channel c)
Gets channel version.
|
static String |
getCurrent()
Gets current.
|
static boolean |
isAboveOrEqualVersion150(String version)
Determine whether the client version is greater than or equal to version 1.5.0
|
static void |
putChannelVersion(io.netty.channel.Channel c,
String v)
Put channel version.
|
public static String getCurrent()
public static void putChannelVersion(io.netty.channel.Channel c,
String v)
c - the cv - the vpublic static String getChannelVersion(io.netty.channel.Channel c)
c - the cpublic static void checkVersion(String version) throws IncompatibleVersionException
version - the versionIncompatibleVersionException - the incompatible version exceptionpublic static boolean isAboveOrEqualVersion150(String version)
version - client versionpublic static long convertVersion(String version) throws IncompatibleVersionException
IncompatibleVersionExceptionpublic static long convertVersionNotThrowException(String version)
Copyright © 2023 Seata. All rights reserved.