public interface MQTxManagerService
| 限定符和类型 | 方法和说明 |
|---|---|
TxGroup |
addTransactionGroup(String groupId,
String taskId,
boolean isGroup,
String methodStr)
添加事务组子对象
|
int |
cleanNotifyTransaction(String groupId,
String taskId)
检查事务状态 通过netty管道
|
int |
cleanNotifyTransactionHttp(String groupId,
String waitTaskId)
检查并清理事务数据
|
int |
closeTransactionGroup(String groupId,
int state)
关闭事务组-进入事务提交第一阶段
|
void |
createTransactionGroup(String groupId)
创建事务组
|
String |
httpGetServer()
获取TM服务地址
|
void |
sendCompensateMsg(String groupId,
long time,
TxTransactionInfo info,
int startError)
记录补偿事务数据到tm
|
void |
uploadModelInfo()
上传模块信息
|
void uploadModelInfo()
void createTransactionGroup(String groupId)
groupId - 事务组id 当为补偿模式时将会自动获取补偿的groupIdTxGroup addTransactionGroup(String groupId, String taskId, boolean isGroup, String methodStr)
groupId - 事务组idtaskId - 任务IdisGroup - 是否合并到事务组 true合并 false不合并methodStr - 方法参数列表int closeTransactionGroup(String groupId, int state)
groupId - 事务组idstate - 提交或者回滚 1提交0回滚int cleanNotifyTransaction(String groupId, String taskId)
groupId - 事务组idtaskId - 任务idint cleanNotifyTransactionHttp(String groupId, String waitTaskId)
groupId - 事务组idwaitTaskId - 任务idvoid sendCompensateMsg(String groupId, long time, TxTransactionInfo info, int startError)
groupId - 事务组Idtime - 执行时间info - 事务信息startError - 启动模块db执行异常String httpGetServer()
Copyright © 2018. All rights reserved.