public interface TransactionManager
| 限定符和类型 | 方法和说明 |
|---|---|
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.
|
String begin(String applicationId, String transactionServiceGroup, String name, int timeout) throws TransactionException
applicationId - 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.GlobalStatus commit(String xid) throws TransactionException
xid - XID of the global transaction.TransactionException - Any exception that fails this will be wrapped with TransactionException and thrown
out.GlobalStatus rollback(String xid) throws TransactionException
xid - XID of the global transactionTransactionException - Any exception that fails this will be wrapped with TransactionException and thrown
out.GlobalStatus getStatus(String xid) throws TransactionException
xid - XID of the global transaction.TransactionException - Any exception that fails this will be wrapped with TransactionException and thrown
out.GlobalStatus globalReport(String xid, GlobalStatus globalStatus) throws TransactionException
xid - 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.