public class DefaultTransactionManager extends Object implements TransactionManager
| 构造器和说明 |
|---|
DefaultTransactionManager() |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
begin(String applicationId,
String transactionServiceGroup,
String name,
int timeout)
Begin a new global transaction.
|
GlobalStatus |
commit(String xid)
Global commit.
|
GlobalStatus |
getStatus(String xid)
Get current status of the give transaction.
|
GlobalStatus |
globalReport(String xid,
GlobalStatus globalStatus)
Global report.
|
GlobalStatus |
rollback(String xid)
Global rollback.
|
public String begin(String applicationId, String transactionServiceGroup, String name, int timeout) throws TransactionException
TransactionManagerbegin 在接口中 TransactionManagerapplicationId - ID of the application who begins this transaction.transactionServiceGroup - ID of the transaction service group.name - Give a name to the global transaction.timeout - Timeout of the global transaction.TransactionException - Any exception that fails this will be wrapped with TransactionException and thrown
out.public GlobalStatus commit(String xid) throws TransactionException
TransactionManagercommit 在接口中 TransactionManagerxid - XID of the global transaction.TransactionException - Any exception that fails this will be wrapped with TransactionException and thrown
out.public GlobalStatus rollback(String xid) throws TransactionException
TransactionManagerrollback 在接口中 TransactionManagerxid - XID of the global transactionTransactionException - Any exception that fails this will be wrapped with TransactionException and thrown
out.public GlobalStatus getStatus(String xid) throws TransactionException
TransactionManagergetStatus 在接口中 TransactionManagerxid - XID of the global transaction.TransactionException - Any exception that fails this will be wrapped with TransactionException and thrown
out.public GlobalStatus globalReport(String xid, GlobalStatus globalStatus) throws TransactionException
TransactionManagerglobalReport 在接口中 TransactionManagerxid - XID of the global transaction.globalStatus - Status of the global transaction.TransactionException - Any exception that fails this will be wrapped with TransactionException and thrown
out.Copyright © 2022 Seata. All rights reserved.