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