public class SerializerFactory extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
protected static Map<SerializerType,Serializer> |
CODEC_MAP
The constant CODEC_MAP.
|
| 构造器和说明 |
|---|
SerializerFactory() |
| 限定符和类型 | 方法和说明 |
|---|---|
static <T> T |
decode(byte codec,
byte[] bytes)
Decode t.
|
static <T> byte[] |
encode(byte serializeCode,
T t)
Encode byte [ ].
|
static Serializer |
getSerializer(byte serializeCode)
Get serializeCode serializeCode.
|
protected static final Map<SerializerType,Serializer> CODEC_MAP
public static Serializer getSerializer(byte serializeCode)
serializeCode - the codepublic static <T> byte[] encode(byte serializeCode,
T t)
T - the type parameterserializeCode - the serializeCodet - the tpublic static <T> T decode(byte codec,
byte[] bytes)
T - the type parametercodec - the codebytes - the bytesCopyright © 2020 Seata. All rights reserved.