public abstract class AbstractResourceManager extends Object implements ResourceManager
| 限定符和类型 | 字段和说明 |
|---|---|
protected static org.slf4j.Logger |
LOGGER |
| 构造器和说明 |
|---|
AbstractResourceManager() |
| 限定符和类型 | 方法和说明 |
|---|---|
Long |
branchRegister(BranchType branchType,
String resourceId,
String clientId,
String xid,
String applicationData,
String lockKeys)
registry branch record
|
void |
branchReport(BranchType branchType,
String xid,
long branchId,
BranchStatus status,
String applicationData)
report branch status
|
boolean |
lockQuery(BranchType branchType,
String resourceId,
String xid,
String lockKeys)
Lock query boolean.
|
void |
registerResource(Resource resource)
Register a Resource to be managed by Resource Manager.
|
void |
unregisterResource(Resource resource)
Unregister a Resource from the Resource Manager.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetBranchType, getManagedResourcesbranchCommit, branchRollbackpublic Long branchRegister(BranchType branchType, String resourceId, String clientId, String xid, String applicationData, String lockKeys) throws TransactionException
branchRegister 在接口中 ResourceManagerOutboundbranchType - the branch typeresourceId - the resource idclientId - the client idxid - the xidlockKeys - the lock keysapplicationData - the contextTransactionExceptionpublic void branchReport(BranchType branchType, String xid, long branchId, BranchStatus status, String applicationData) throws TransactionException
branchReport 在接口中 ResourceManagerOutboundbranchType - the branch typexid - the xidbranchId - the branch idstatus - the statusapplicationData - the application dataTransactionExceptionpublic boolean lockQuery(BranchType branchType, String resourceId, String xid, String lockKeys) throws TransactionException
ResourceManagerOutboundlockQuery 在接口中 ResourceManagerOutboundbranchType - the branch typeresourceId - the resource idxid - the xidlockKeys - the lock keysTransactionException - the transaction exceptionpublic void unregisterResource(Resource resource)
ResourceManagerunregisterResource 在接口中 ResourceManagerresource - The resource to be removed.public void registerResource(Resource resource)
ResourceManagerregisterResource 在接口中 ResourceManagerresource - The resource to be managed.Copyright © 2020 Seata. All rights reserved.