public abstract class AbstractMessage extends Object implements MessageCodec, Serializable
| 限定符和类型 | 字段和说明 |
|---|---|
protected io.netty.channel.ChannelHandlerContext |
ctx
The Ctx.
|
static short |
TYPE_BRANCH_COMMIT
The constant TYPE_BRANCH_COMMIT.
|
static short |
TYPE_BRANCH_COMMIT_RESULT
The constant TYPE_BRANCH_COMMIT_RESULT.
|
static short |
TYPE_BRANCH_REGISTER
The constant TYPE_BRANCH_REGISTER.
|
static short |
TYPE_BRANCH_REGISTER_RESULT
The constant TYPE_BRANCH_REGISTER_RESULT.
|
static short |
TYPE_BRANCH_ROLLBACK
The constant TYPE_BRANCH_ROLLBACK.
|
static short |
TYPE_BRANCH_ROLLBACK_RESULT
The constant TYPE_BRANCH_ROLLBACK_RESULT.
|
static short |
TYPE_BRANCH_STATUS_REPORT
The constant TYPE_BRANCH_STATUS_REPORT.
|
static short |
TYPE_BRANCH_STATUS_REPORT_RESULT
The constant TYPE_BRANCH_STATUS_REPORT_RESULT.
|
static short |
TYPE_GLOBAL_BEGIN
The constant TYPE_GLOBAL_BEGIN.
|
static short |
TYPE_GLOBAL_BEGIN_RESULT
The constant TYPE_GLOBAL_BEGIN_RESULT.
|
static short |
TYPE_GLOBAL_COMMIT
The constant TYPE_GLOBAL_COMMIT.
|
static short |
TYPE_GLOBAL_COMMIT_RESULT
The constant TYPE_GLOBAL_COMMIT_RESULT.
|
static short |
TYPE_GLOBAL_LOCK_QUERY
The constant TYPE_GLOBAL_LOCK_QUERY.
|
static short |
TYPE_GLOBAL_LOCK_QUERY_RESULT
The constant TYPE_GLOBAL_LOCK_QUERY_RESULT.
|
static short |
TYPE_GLOBAL_ROLLBACK
The constant TYPE_GLOBAL_ROLLBACK.
|
static short |
TYPE_GLOBAL_ROLLBACK_RESULT
The constant TYPE_GLOBAL_ROLLBACK_RESULT.
|
static short |
TYPE_GLOBAL_STATUS
The constant TYPE_GLOBAL_STATUS.
|
static short |
TYPE_GLOBAL_STATUS_RESULT
The constant TYPE_GLOBAL_STATUS_RESULT.
|
static short |
TYPE_REG_CLT
The constant TYPE_REG_CLT.
|
static short |
TYPE_REG_CLT_RESULT
The constant TYPE_REG_CLT_RESULT.
|
static short |
TYPE_REG_RM
The constant TYPE_REG_RM.
|
static short |
TYPE_REG_RM_RESULT
The constant TYPE_REG_RM_RESULT.
|
static short |
TYPE_SEATA_MERGE
The constant TYPE_SEATA_MERGE.
|
static short |
TYPE_SEATA_MERGE_RESULT
The constant TYPE_SEATA_MERGE_RESULT.
|
protected static Charset |
UTF8
The constant UTF8.
|
| 构造器和说明 |
|---|
AbstractMessage() |
| 限定符和类型 | 方法和说明 |
|---|---|
static int |
bytesToInt(byte[] bytes,
int offset)
Bytes to int int.
|
boolean |
decode(io.netty.buffer.ByteBuf in)
Decode boolean.
|
static MergedMessage |
getMergeRequestInstanceByCode(int typeCode)
Gets merge request instance by code.
|
static MergedMessage |
getMergeResponseInstanceByCode(int typeCode)
Gets merge response instance by code.
|
static MessageCodec |
getMsgInstanceByCode(short typeCode)
Gets msg instance by code.
|
static void |
intToBytes(int i,
byte[] bytes,
int offset)
Int to bytes.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitencode, getTypeCodepublic static final short TYPE_GLOBAL_BEGIN
public static final short TYPE_GLOBAL_BEGIN_RESULT
public static final short TYPE_GLOBAL_COMMIT
public static final short TYPE_GLOBAL_COMMIT_RESULT
public static final short TYPE_GLOBAL_ROLLBACK
public static final short TYPE_GLOBAL_ROLLBACK_RESULT
public static final short TYPE_GLOBAL_STATUS
public static final short TYPE_GLOBAL_STATUS_RESULT
public static final short TYPE_GLOBAL_LOCK_QUERY
public static final short TYPE_GLOBAL_LOCK_QUERY_RESULT
public static final short TYPE_BRANCH_COMMIT
public static final short TYPE_BRANCH_COMMIT_RESULT
public static final short TYPE_BRANCH_ROLLBACK
public static final short TYPE_BRANCH_ROLLBACK_RESULT
public static final short TYPE_BRANCH_REGISTER
public static final short TYPE_BRANCH_REGISTER_RESULT
public static final short TYPE_BRANCH_STATUS_REPORT
public static final short TYPE_BRANCH_STATUS_REPORT_RESULT
public static final short TYPE_SEATA_MERGE
public static final short TYPE_SEATA_MERGE_RESULT
public static final short TYPE_REG_CLT
public static final short TYPE_REG_CLT_RESULT
public static final short TYPE_REG_RM
public static final short TYPE_REG_RM_RESULT
protected static final Charset UTF8
protected io.netty.channel.ChannelHandlerContext ctx
public static int bytesToInt(byte[] bytes,
int offset)
bytes - the bytesoffset - the offsetpublic static void intToBytes(int i,
byte[] bytes,
int offset)
i - thebytes - the bytesoffset - the offsetpublic boolean decode(io.netty.buffer.ByteBuf in)
MessageCodecdecode 在接口中 MessageCodecin - the inpublic static MessageCodec getMsgInstanceByCode(short typeCode)
typeCode - the type codepublic static MergedMessage getMergeRequestInstanceByCode(int typeCode)
typeCode - the type codepublic static MergedMessage getMergeResponseInstanceByCode(int typeCode)
typeCode - the type codeCopyright © 2019 Seata. All rights reserved.