public class MessageCodecFactory extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static Charset |
UTF8
The constant UTF8.
|
| Constructor and Description |
|---|
MessageCodecFactory() |
| Modifier and Type | Method and Description |
|---|---|
protected static AbstractMessage |
getMergeRequestInstanceByCode(int typeCode)
Gets merge request instance by code.
|
protected static MessageSeataCodec |
getMergeRequestMessageSeataCodec(int typeCode)
Gets merge request instance by code.
|
protected static AbstractMessage |
getMergeResponseInstanceByCode(int typeCode)
Gets merge response instance by code.
|
protected static MessageSeataCodec |
getMergeResponseMessageSeataCodec(int typeCode)
Gets merge response instance by code.
|
static AbstractMessage |
getMessage(short typeCode)
Gets message.
|
static MessageSeataCodec |
getMessageCodec(AbstractMessage abstractMessage)
Get message codec message codec.
|
static MessageSeataCodec |
getMessageCodec(short typeCode)
Gets msg instance by code.
|
protected static final Charset UTF8
public static MessageSeataCodec getMessageCodec(AbstractMessage abstractMessage)
abstractMessage - the abstract messagepublic static MessageSeataCodec getMessageCodec(short typeCode)
typeCode - the type codeprotected static MessageSeataCodec getMergeRequestMessageSeataCodec(int typeCode)
typeCode - the type codeprotected static MessageSeataCodec getMergeResponseMessageSeataCodec(int typeCode)
typeCode - the type codepublic static AbstractMessage getMessage(short typeCode)
typeCode - the type codeprotected static AbstractMessage getMergeRequestInstanceByCode(int typeCode)
typeCode - the type codeprotected static AbstractMessage getMergeResponseInstanceByCode(int typeCode)
typeCode - the type codeCopyright © 2023 Seata. All rights reserved.