public abstract class AbstractRMHandler extends AbstractExceptionHandler implements RMInboundHandler, TransactionMessageHandler
AbstractExceptionHandler.Callback<T extends AbstractTransactionRequest,S extends AbstractTransactionResponse>| 构造器和说明 |
|---|
AbstractRMHandler() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
doBranchCommit(BranchCommitRequest request,
BranchCommitResponse response)
Do branch commit.
|
protected void |
doBranchRollback(BranchRollbackRequest request,
BranchRollbackResponse response)
Do branch rollback.
|
abstract BranchType |
getBranchType() |
protected abstract ResourceManager |
getResourceManager()
get resource manager implement
|
BranchCommitResponse |
handle(BranchCommitRequest request) |
BranchRollbackResponse |
handle(BranchRollbackRequest request) |
AbstractResultMessage |
onRequest(AbstractMessage request,
RpcContext context) |
void |
onResponse(AbstractResultMessage response,
RpcContext context) |
exceptionHandleTemplatepublic BranchCommitResponse handle(BranchCommitRequest request)
handle 在接口中 RMInboundHandlerpublic BranchRollbackResponse handle(BranchRollbackRequest request)
handle 在接口中 RMInboundHandlerprotected void doBranchCommit(BranchCommitRequest request, BranchCommitResponse response) throws TransactionException
request - the requestresponse - the responseTransactionException - the transaction exceptionprotected void doBranchRollback(BranchRollbackRequest request, BranchRollbackResponse response) throws TransactionException
request - the requestresponse - the responseTransactionException - the transaction exceptionprotected abstract ResourceManager getResourceManager()
public AbstractResultMessage onRequest(AbstractMessage request, RpcContext context)
onRequest 在接口中 TransactionMessageHandlerpublic void onResponse(AbstractResultMessage response, RpcContext context)
onResponse 在接口中 TransactionMessageHandlerpublic abstract BranchType getBranchType()
Copyright © 2019 Seata. All rights reserved.