public class GlobalBeginRequest extends AbstractTransactionRequestToTC implements MergedMessage
byteBuffer, handlerctx, TYPE_BRANCH_COMMIT, TYPE_BRANCH_COMMIT_RESULT, TYPE_BRANCH_REGISTER, TYPE_BRANCH_REGISTER_RESULT, TYPE_BRANCH_ROLLBACK, TYPE_BRANCH_ROLLBACK_RESULT, TYPE_BRANCH_STATUS_REPORT, TYPE_BRANCH_STATUS_REPORT_RESULT, TYPE_GLOBAL_BEGIN, TYPE_GLOBAL_BEGIN_RESULT, TYPE_GLOBAL_COMMIT, TYPE_GLOBAL_COMMIT_RESULT, TYPE_GLOBAL_LOCK_QUERY, TYPE_GLOBAL_LOCK_QUERY_RESULT, TYPE_GLOBAL_ROLLBACK, TYPE_GLOBAL_ROLLBACK_RESULT, TYPE_GLOBAL_STATUS, TYPE_GLOBAL_STATUS_RESULT, TYPE_REG_CLT, TYPE_REG_CLT_RESULT, TYPE_REG_RM, TYPE_REG_RM_RESULT, TYPE_SEATA_MERGE, TYPE_SEATA_MERGE_RESULT, UTF8| 构造器和说明 |
|---|
GlobalBeginRequest() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
decode(ByteBuffer byteBuffer)
Decode.
|
byte[] |
encode()
Encode byte [ ].
|
int |
getTimeout()
Gets timeout.
|
String |
getTransactionName()
Gets transaction name.
|
short |
getTypeCode()
Gets type code.
|
AbstractTransactionResponse |
handle(RpcContext rpcContext)
Handle abstract transaction response.
|
void |
setTimeout(int timeout)
Sets timeout.
|
void |
setTransactionName(String transactionName)
Sets transaction name.
|
String |
toString() |
setTCInboundHandlerbytesToInt, decode, getMergeRequestInstanceByCode, getMergeResponseInstanceByCode, getMsgInstanceByCode, intToBytespublic int getTimeout()
public void setTimeout(int timeout)
timeout - the timeoutpublic String getTransactionName()
public void setTransactionName(String transactionName)
transactionName - the transaction namepublic short getTypeCode()
MessageCodecgetTypeCode 在接口中 MessageCodecpublic byte[] encode()
MessageCodecencode 在接口中 MessageCodecpublic void decode(ByteBuffer byteBuffer)
MergedMessagedecode 在接口中 MergedMessagebyteBuffer - the byte bufferpublic AbstractTransactionResponse handle(RpcContext rpcContext)
AbstractTransactionRequesthandle 在类中 AbstractTransactionRequestrpcContext - the rpc contextCopyright © 2019 Seata. All rights reserved.