public abstract class AbstractSessionManager extends Object implements SessionManager, SessionLifecycleListener
| 限定符和类型 | 字段和说明 |
|---|---|
protected static org.slf4j.Logger |
LOGGER
The constant LOGGER.
|
protected String |
name
The Name.
|
protected TransactionStoreManager |
transactionStoreManager
The Transaction store manager.
|
| 构造器和说明 |
|---|
AbstractSessionManager()
Instantiates a new Abstract session manager.
|
AbstractSessionManager(String name)
Instantiates a new Abstract session manager.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addBranchSession(GlobalSession session,
BranchSession branchSession)
Add branch session.
|
void |
addGlobalSession(GlobalSession session)
Add global session.
|
void |
destroy() |
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 |
removeBranchSession(GlobalSession globalSession,
BranchSession branchSession)
Remove branch session.
|
void |
removeGlobalSession(GlobalSession session)
Remove global session.
|
void |
setTransactionStoreManager(TransactionStoreManager transactionStoreManager)
Sets transaction store manager.
|
void |
updateBranchSessionStatus(BranchSession branchSession,
BranchStatus status)
Update branch session status.
|
void |
updateGlobalSessionStatus(GlobalSession session,
GlobalStatus status)
Update global session status.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitallSessions, findGlobalSession, findGlobalSession, findGlobalSessions, lockAndExecuteprotected static final org.slf4j.Logger LOGGER
protected TransactionStoreManager transactionStoreManager
protected String name
public AbstractSessionManager()
public AbstractSessionManager(String name)
name - the namepublic void addGlobalSession(GlobalSession session) throws TransactionException
SessionManageraddGlobalSession 在接口中 SessionManagersession - the sessionTransactionException - the transaction exceptionpublic void updateGlobalSessionStatus(GlobalSession session, GlobalStatus status) throws TransactionException
SessionManagerupdateGlobalSessionStatus 在接口中 SessionManagersession - the sessionstatus - the statusTransactionException - the transaction exceptionpublic void removeGlobalSession(GlobalSession session) throws TransactionException
SessionManagerremoveGlobalSession 在接口中 SessionManagersession - the sessionTransactionException - the transaction exceptionpublic void addBranchSession(GlobalSession session, BranchSession branchSession) throws TransactionException
SessionManageraddBranchSession 在接口中 SessionManagersession - the global sessionbranchSession - the sessionTransactionException - the transaction exceptionpublic void updateBranchSessionStatus(BranchSession branchSession, BranchStatus status) throws TransactionException
SessionManagerupdateBranchSessionStatus 在接口中 SessionManagerbranchSession - the sessionstatus - the statusTransactionException - the transaction exceptionpublic void removeBranchSession(GlobalSession globalSession, BranchSession branchSession) throws TransactionException
SessionManagerremoveBranchSession 在接口中 SessionManagerglobalSession - the global sessionbranchSession - the sessionTransactionException - the transaction exceptionpublic void onBegin(GlobalSession globalSession) throws TransactionException
SessionLifecycleListeneronBegin 在接口中 SessionLifecycleListenerglobalSession - the global sessionTransactionException - the transaction exceptionpublic void onStatusChange(GlobalSession globalSession, GlobalStatus status) throws TransactionException
SessionLifecycleListeneronStatusChange 在接口中 SessionLifecycleListenerglobalSession - the global sessionstatus - the statusTransactionException - the transaction exceptionpublic void onBranchStatusChange(GlobalSession globalSession, BranchSession branchSession, BranchStatus status) throws TransactionException
SessionLifecycleListeneronBranchStatusChange 在接口中 SessionLifecycleListenerglobalSession - the global sessionbranchSession - the branch sessionstatus - the statusTransactionException - the transaction exceptionpublic void onAddBranch(GlobalSession globalSession, BranchSession branchSession) throws TransactionException
SessionLifecycleListeneronAddBranch 在接口中 SessionLifecycleListenerglobalSession - the global sessionbranchSession - the branch sessionTransactionException - the transaction exceptionpublic void onRemoveBranch(GlobalSession globalSession, BranchSession branchSession) throws TransactionException
SessionLifecycleListeneronRemoveBranch 在接口中 SessionLifecycleListenerglobalSession - the global sessionbranchSession - the branch sessionTransactionException - the transaction exceptionpublic void onClose(GlobalSession globalSession) throws TransactionException
SessionLifecycleListeneronClose 在接口中 SessionLifecycleListenerglobalSession - the global sessionTransactionException - the transaction exceptionpublic void onSuccessEnd(GlobalSession globalSession) throws TransactionException
SessionLifecycleListeneronSuccessEnd 在接口中 SessionLifecycleListenerglobalSession - the global sessionTransactionException - the transaction exceptionpublic void onFailEnd(GlobalSession globalSession) throws TransactionException
SessionLifecycleListeneronFailEnd 在接口中 SessionLifecycleListenerglobalSession - the global sessionTransactionException - the transaction exceptionpublic void destroy()
destroy 在接口中 Disposablepublic void setTransactionStoreManager(TransactionStoreManager transactionStoreManager)
transactionStoreManager - the transaction store managerCopyright © 2022 Seata. All rights reserved.