public interface SessionLifecycle
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addBranch(BranchSession branchSession)
Add branch.
|
void |
begin()
Begin.
|
void |
changeBranchStatus(BranchSession branchSession,
BranchStatus status)
Change branch status.
|
void |
changeGlobalStatus(GlobalStatus status)
Change status.
|
void |
close()
Close.
|
void |
end()
end.
|
boolean |
isActive()
Is active boolean.
|
void |
removeBranch(BranchSession branchSession)
Remove branch.
|
void begin()
throws TransactionException
TransactionException - the transaction exceptionvoid changeGlobalStatus(GlobalStatus status) throws TransactionException
status - the statusTransactionException - the transaction exceptionvoid changeBranchStatus(BranchSession branchSession, BranchStatus status) throws TransactionException
branchSession - the branch sessionstatus - the statusTransactionException - the transaction exceptionvoid addBranch(BranchSession branchSession) throws TransactionException
branchSession - the branch sessionTransactionException - the transaction exceptionvoid removeBranch(BranchSession branchSession) throws TransactionException
branchSession - the branch sessionTransactionException - the transaction exceptionboolean isActive()
void close()
throws TransactionException
TransactionException - the transaction exceptionvoid end() throws TransactionException
TransactionException - the transaction exceptionCopyright © 2022 Seata. All rights reserved.