public class DataBaseTransactionStoreManager extends AbstractTransactionStoreManager implements TransactionStoreManager
TransactionStoreManager.LogOperation| 限定符和类型 | 字段和说明 |
|---|---|
protected static io.seata.config.Configuration |
CONFIG
The constant CONFIG.
|
protected int |
logQueryLimit
The Log query limit.
|
protected LogStore |
logStore
The Log store.
|
| 限定符和类型 | 方法和说明 |
|---|---|
static DataBaseTransactionStoreManager |
getInstance()
Get the instance.
|
List<GlobalSession> |
readSession(GlobalStatus[] statuses,
boolean withBranchSessions)
Read session list.
|
GlobalSession |
readSession(Long transactionId)
Read session global session.
|
List<GlobalSession> |
readSession(SessionCondition sessionCondition)
Read session by status list.
|
GlobalSession |
readSession(String xid)
Read session global session.
|
GlobalSession |
readSession(String xid,
boolean withBranchSessions)
Read session global session.
|
void |
setLogQueryLimit(int logQueryLimit)
Sets log query limit.
|
void |
setLogStore(LogStore logStore)
Sets log store.
|
boolean |
writeSession(TransactionStoreManager.LogOperation logOperation,
SessionStorable session)
Write session boolean.
|
shutdownclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitshutdownprotected static final io.seata.config.Configuration CONFIG
protected LogStore logStore
protected int logQueryLimit
public static DataBaseTransactionStoreManager getInstance()
public boolean writeSession(TransactionStoreManager.LogOperation logOperation, SessionStorable session)
TransactionStoreManagerwriteSession 在接口中 TransactionStoreManagerlogOperation - the log operationsession - the sessionpublic GlobalSession readSession(Long transactionId)
transactionId - the transaction idpublic GlobalSession readSession(String xid)
readSession 在接口中 TransactionStoreManagerreadSession 在类中 AbstractTransactionStoreManagerxid - the xidpublic GlobalSession readSession(String xid, boolean withBranchSessions)
readSession 在接口中 TransactionStoreManagerreadSession 在类中 AbstractTransactionStoreManagerxid - the xidwithBranchSessions - the withBranchSessionspublic List<GlobalSession> readSession(GlobalStatus[] statuses, boolean withBranchSessions)
readSession 在接口中 TransactionStoreManagerreadSession 在类中 AbstractTransactionStoreManagerstatuses - the statuseswithBranchSessions - the withBranchSessionspublic List<GlobalSession> readSession(SessionCondition sessionCondition)
TransactionStoreManagerreadSession 在接口中 TransactionStoreManagerreadSession 在类中 AbstractTransactionStoreManagersessionCondition - the session conditionpublic void setLogStore(LogStore logStore)
logStore - the log storepublic void setLogQueryLimit(int logQueryLimit)
logQueryLimit - the log query limitCopyright © 2022 Seata. All rights reserved.