public class DataSourceManager extends AbstractResourceManager implements io.seata.common.executor.Initialize
| 构造器和说明 |
|---|
DataSourceManager()
Instantiates a new Data source manager.
|
| 限定符和类型 | 方法和说明 |
|---|---|
BranchStatus |
branchCommit(BranchType branchType,
String xid,
long branchId,
String resourceId,
String applicationData) |
BranchStatus |
branchRollback(BranchType branchType,
String xid,
long branchId,
String resourceId,
String applicationData) |
DataSourceProxy |
get(String resourceId)
Get data source proxy.
|
BranchType |
getBranchType() |
Map<String,Resource> |
getManagedResources() |
void |
init() |
void |
initAsyncWorker(ResourceManagerInbound asyncWorker)
Init.
|
boolean |
lockQuery(BranchType branchType,
String resourceId,
String xid,
String lockKeys) |
void |
registerResource(Resource resource) |
void |
setAsyncWorker(ResourceManagerInbound asyncWorker)
Sets async worker.
|
void |
unregisterResource(Resource resource) |
branchRegister, branchReportpublic void setAsyncWorker(ResourceManagerInbound asyncWorker)
asyncWorker - the async workerpublic boolean lockQuery(BranchType branchType, String resourceId, String xid, String lockKeys) throws TransactionException
lockQuery 在接口中 ResourceManagerOutboundlockQuery 在类中 AbstractResourceManagerTransactionExceptionpublic void initAsyncWorker(ResourceManagerInbound asyncWorker)
asyncWorker - the async workerpublic void init()
init 在接口中 io.seata.common.executor.Initializepublic void registerResource(Resource resource)
registerResource 在接口中 ResourceManagerregisterResource 在类中 AbstractResourceManagerpublic void unregisterResource(Resource resource)
unregisterResource 在接口中 ResourceManagerunregisterResource 在类中 AbstractResourceManagerpublic DataSourceProxy get(String resourceId)
resourceId - the resource idpublic BranchStatus branchCommit(BranchType branchType, String xid, long branchId, String resourceId, String applicationData) throws TransactionException
branchCommit 在接口中 ResourceManagerInboundTransactionExceptionpublic BranchStatus branchRollback(BranchType branchType, String xid, long branchId, String resourceId, String applicationData) throws TransactionException
branchRollback 在接口中 ResourceManagerInboundTransactionExceptionpublic Map<String,Resource> getManagedResources()
getManagedResources 在接口中 ResourceManagerpublic BranchType getBranchType()
getBranchType 在接口中 ResourceManagerCopyright © 2019 Seata. All rights reserved.