@Component public class TransactionControlTemplate extends Object
| 构造器和说明 |
|---|
TransactionControlTemplate(AspectLogger aspectLogger,
DTXChecking dtxChecking,
DTXExceptionHandler dtxExceptionHandler,
TransactionCleanTemplate transactionCleanTemplate,
ReliableMessenger reliableMessenger,
TCGlobalContext globalContext) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
createGroup(String groupId,
String unitId,
TransactionInfo transactionInfo,
String transactionType)
Client创建事务组操作集合
|
void |
joinGroup(String groupId,
String unitId,
String transactionType,
TransactionInfo transactionInfo)
Client加入事务组操作集合
|
void |
notifyGroup(String groupId,
String unitId,
String transactionType,
int state)
Client通知事务组操作集合
|
@Autowired public TransactionControlTemplate(AspectLogger aspectLogger, DTXChecking dtxChecking, DTXExceptionHandler dtxExceptionHandler, TransactionCleanTemplate transactionCleanTemplate, ReliableMessenger reliableMessenger, TCGlobalContext globalContext)
public void createGroup(String groupId, String unitId, TransactionInfo transactionInfo, String transactionType) throws com.codingapi.txlcn.common.exception.TransactionException
groupId - groupIdunitId - unitIdtransactionInfo - txTracetransactionType - transactionTypecom.codingapi.txlcn.common.exception.TransactionException - 创建group失败时抛出public void joinGroup(String groupId, String unitId, String transactionType, TransactionInfo transactionInfo) throws com.codingapi.txlcn.common.exception.TransactionException
groupId - groupIdunitId - unitIdtransactionType - transactionTypetransactionInfo - txTracecom.codingapi.txlcn.common.exception.TransactionException - 加入事务组失败时抛出Copyright © 2019. All rights reserved.