public abstract class AbstractResourceManager extends Object implements ResourceManager
| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
LOGGER |
| Constructor and Description |
|---|
AbstractResourceManager() |
| Modifier and Type | Method and Description |
|---|---|
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) |
void |
registerResource(Resource resource) |
void |
unregisterResource(Resource resource) |
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 in interface ResourceManagerOutboundbranchType - the branch typeresourceId - the resource idclientId - the client idxid - the xidlockKeys - the lock keysTransactionException - TransactionExceptionpublic void branchReport(BranchType branchType, String xid, long branchId, BranchStatus status, String applicationData) throws TransactionException
branchReport in interface ResourceManagerOutboundbranchType - the branch typexid - the xidbranchId - the branch idstatus - the statusapplicationData - the application dataTransactionException - TransactionExceptionpublic boolean lockQuery(BranchType branchType, String resourceId, String xid, String lockKeys) throws TransactionException
lockQuery in interface ResourceManagerOutboundTransactionExceptionpublic void unregisterResource(Resource resource)
unregisterResource in interface ResourceManagerpublic void registerResource(Resource resource)
registerResource in interface ResourceManagerCopyright © 2023 Seata. All rights reserved.