public interface SessionLifecycleListener
| 限定符和类型 | 方法和说明 |
|---|---|
void |
onAddBranch(GlobalSession globalSession,
BranchSession branchSession)
On add branch.
|
void |
onBegin(GlobalSession globalSession)
On begin.
|
void |
onBranchStatusChange(GlobalSession globalSession,
BranchSession branchSession,
BranchStatus status)
On branch status change.
|
void |
onClose(GlobalSession globalSession)
On close.
|
void |
onFailEnd(GlobalSession globalSession)
On fail end.
|
void |
onRemoveBranch(GlobalSession globalSession,
BranchSession branchSession)
On remove branch.
|
void |
onStatusChange(GlobalSession globalSession,
GlobalStatus status)
On status change.
|
void |
onSuccessEnd(GlobalSession globalSession)
On end.
|
void onBegin(GlobalSession globalSession) throws TransactionException
globalSession - the global sessionTransactionException - the transaction exceptionvoid onStatusChange(GlobalSession globalSession, GlobalStatus status) throws TransactionException
globalSession - the global sessionstatus - the statusTransactionException - the transaction exceptionvoid onBranchStatusChange(GlobalSession globalSession, BranchSession branchSession, BranchStatus status) throws TransactionException
globalSession - the global sessionbranchSession - the branch sessionstatus - the statusTransactionException - the transaction exceptionvoid onAddBranch(GlobalSession globalSession, BranchSession branchSession) throws TransactionException
globalSession - the global sessionbranchSession - the branch sessionTransactionException - the transaction exceptionvoid onRemoveBranch(GlobalSession globalSession, BranchSession branchSession) throws TransactionException
globalSession - the global sessionbranchSession - the branch sessionTransactionException - the transaction exceptionvoid onClose(GlobalSession globalSession) throws TransactionException
globalSession - the global sessionTransactionException - the transaction exceptionvoid onSuccessEnd(GlobalSession globalSession) throws TransactionException
globalSession - the global sessionTransactionException - the transaction exceptionvoid onFailEnd(GlobalSession globalSession) throws TransactionException
globalSession - the global sessionTransactionException - the transaction exceptionCopyright © 2022 Seata. All rights reserved.