public enum CodecType extends Enum<CodecType>
| 限定符和类型 | 方法和说明 |
|---|---|
static CodecType |
getByCode(int code)
Gets result code.
|
static CodecType |
getByName(String name)
Gets result code.
|
byte |
getCode()
Gets code.
|
static CodecType |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static CodecType[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final CodecType SEATA
Math.pow(2, 0)
public static final CodecType PROTOBUF
Math.pow(2, 1)
public static final CodecType KRYO
Math.pow(2, 2)
public static CodecType[] values()
for (CodecType c : CodecType.values()) System.out.println(c);
public static CodecType valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public static CodecType getByCode(int code)
code - the codepublic static CodecType getByName(String name)
name - the namepublic byte getCode()
Copyright © 2019 Seata. All rights reserved.