public class BranchReportRequest 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| 构造器和说明 |
|---|
BranchReportRequest() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
decode(ByteBuffer byteBuffer)
Decode.
|
byte[] |
encode()
Encode byte [ ].
|
String |
getApplicationData()
Gets application data.
|
long |
getBranchId()
Gets branch id.
|
BranchType |
getBranchType()
Gets branch type.
|
String |
getResourceId()
Gets resource id.
|
BranchStatus |
getStatus()
Gets status.
|
short |
getTypeCode()
Gets type code.
|
String |
getXid()
Gets xid.
|
AbstractTransactionResponse |
handle(RpcContext rpcContext)
Handle abstract transaction response.
|
void |
setApplicationData(String applicationData)
Sets application data.
|
void |
setBranchId(long branchId)
Sets branch id.
|
void |
setBranchType(BranchType branchType)
Sets branch type.
|
void |
setResourceId(String resourceId)
Sets resource id.
|
void |
setStatus(BranchStatus status)
Sets status.
|
void |
setXid(String xid)
Sets xid.
|
String |
toString() |
setTCInboundHandlerbytesToInt, decode, getMergeRequestInstanceByCode, getMergeResponseInstanceByCode, getMsgInstanceByCode, intToBytespublic String getXid()
public void setXid(String xid)
xid - the xidpublic long getBranchId()
public void setBranchId(long branchId)
branchId - the branch idpublic String getResourceId()
public void setResourceId(String resourceId)
resourceId - the resource idpublic BranchType getBranchType()
public void setBranchType(BranchType branchType)
branchType - the branch typepublic BranchStatus getStatus()
public void setStatus(BranchStatus status)
status - the statuspublic String getApplicationData()
public void setApplicationData(String applicationData)
applicationData - the application datapublic 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.