public class Version extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
static Map<String,String> |
VERSION_MAP
The constant VERSION_MAP.
|
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
checkVersion(String version)
Check version string.
|
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 versionCopyright © 2022 Seata. All rights reserved.