public class DataSourceManager extends AbstractResourceManager
| Constructor and Description |
|---|
DataSourceManager()
Instantiates a new Data source manager.
|
| Modifier and Type | Method and Description |
|---|---|
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() |
boolean |
lockQuery(BranchType branchType,
String resourceId,
String xid,
String lockKeys) |
void |
registerResource(Resource resource) |
void |
unregisterResource(Resource resource) |
branchRegister, branchReport, getGlobalStatuspublic DataSourceManager()
public boolean lockQuery(BranchType branchType, String resourceId, String xid, String lockKeys) throws TransactionException
lockQuery in interface ResourceManagerOutboundlockQuery in class AbstractResourceManagerTransactionExceptionpublic void registerResource(Resource resource)
registerResource in interface ResourceManagerregisterResource in class AbstractResourceManagerpublic void unregisterResource(Resource resource)
unregisterResource in interface ResourceManagerunregisterResource in class AbstractResourceManagerpublic DataSourceProxy get(String resourceId)
resourceId - the resource idpublic BranchStatus branchCommit(BranchType branchType, String xid, long branchId, String resourceId, String applicationData) throws TransactionException
TransactionExceptionpublic BranchStatus branchRollback(BranchType branchType, String xid, long branchId, String resourceId, String applicationData) throws TransactionException
TransactionExceptionpublic BranchType getBranchType()
Copyright © 2024 Apache. All rights reserved.