public interface ReliableMessenger
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
acquireLocks(String groupId,
Set<String> lockIdSet,
int type)
申请锁
|
int |
askTransactionState(String groupId,
String unitId)
询问事务状态
|
int |
clusterSize()
TM集群大小
|
void |
createGroup(String groupId)
创建事务组
|
void |
joinGroup(String groupId,
String unitId,
String unitType,
int transactionState)
加入事务组
|
int |
notifyGroup(String groupId,
int transactionState)
通知事务组
|
HashSet<String> |
queryTMCluster()
查询集群的其他TM实例
|
void |
releaseLocks(Set<String> lockIdList)
释放锁
|
void |
reportInvalidTM(HashSet<String> invalidTMSet)
报告失效的TM
|
MessageDto |
request(MessageDto messageDto)
发起一个请求
|
boolean acquireLocks(String groupId, Set<String> lockIdSet, int type) throws RpcException
groupId - groupIdlockIdSet - 锁集合type - 锁类型RpcException - Non TMvoid releaseLocks(Set<String> lockIdList) throws RpcException
lockIdList - 锁集合RpcException - Non TMint notifyGroup(String groupId, int transactionState) throws RpcException, com.codingapi.txlcn.common.exception.LcnBusinessException
groupId - groupIdtransactionState - 分布式事务状态RpcException - Non TMcom.codingapi.txlcn.common.exception.LcnBusinessException - TM Business Errvoid joinGroup(String groupId, String unitId, String unitType, int transactionState) throws RpcException, com.codingapi.txlcn.common.exception.LcnBusinessException
groupId - groupIdunitId - 事务单元标识unitType - 事务类型transactionState - 用户事务状态RpcException - Non TMcom.codingapi.txlcn.common.exception.LcnBusinessException - TM Business Errvoid createGroup(String groupId) throws RpcException, com.codingapi.txlcn.common.exception.LcnBusinessException
groupId - groupIdRpcException - Non TMcom.codingapi.txlcn.common.exception.LcnBusinessException - TM Business Errint askTransactionState(String groupId, String unitId) throws RpcException
groupId - groupIdunitId - unitIdRpcException - Non TMvoid reportInvalidTM(HashSet<String> invalidTMSet) throws RpcException
invalidTMSet - 失效的TM集合RpcException - Non TMHashSet<String> queryTMCluster() throws RpcException
RpcException - Non TMMessageDto request(MessageDto messageDto) throws RpcException
messageDto - 消息RpcException - Non TMint clusterSize()
Copyright © 2019. All rights reserved.