public enum SerializerType extends Enum<SerializerType>
| 枚举常量和说明 |
|---|
FST
The fst.
|
HESSIAN
The hessian.
|
KRYO
The kryo.
|
PROTOBUF
The protobuf, 'io.seata:seata-serializer-protobuf' dependency must be referenced manually.
|
SEATA
The seata.
|
| 限定符和类型 | 方法和说明 |
|---|---|
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 final SerializerType FST
Math.pow(2, 3)
public static final SerializerType HESSIAN
Math.pow(2, 4)
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 © 2022 Seata. All rights reserved.