public class DefaultCoordinator extends AbstractTCInboundHandler implements TransactionMessageHandler, Disposable
AbstractExceptionHandler.AbstractCallback<T extends AbstractTransactionRequest,S extends AbstractTransactionResponse>, AbstractExceptionHandler.Callback<T extends AbstractTransactionRequest,S extends AbstractTransactionResponse>| 限定符和类型 | 字段和说明 |
|---|---|
protected static long |
ASYNC_COMMITTING_RETRY_PERIOD
The constant ASYNC_COMMITTING_RETRY_PERIOD.
|
protected static long |
COMMITTING_RETRY_PERIOD
The constant COMMITTING_RETRY_PERIOD.
|
protected static long |
ROLLBACKING_RETRY_PERIOD
The constant ROLLBACKING_RETRY_PERIOD.
|
protected static long |
TIMEOUT_RETRY_PERIOD
The constant TIMEOUT_RETRY_PERIOD.
|
protected static long |
UNDO_LOG_DELAY_DELETE_PERIOD
The Transaction undo log delay delete period
|
protected static long |
UNDO_LOG_DELETE_PERIOD
The Transaction undo log delete period.
|
CONFIG| 限定符和类型 | 方法和说明 |
|---|---|
void |
destroy() |
protected void |
doBranchRegister(BranchRegisterRequest request,
BranchRegisterResponse response,
RpcContext rpcContext)
Do branch register.
|
void |
doBranchRemoveAllAsync(GlobalSession globalSession)
Asynchronous remove all branch
|
void |
doBranchRemoveAsync(GlobalSession globalSession,
BranchSession branchSession)
Asynchronous remove branch
|
protected void |
doBranchReport(BranchReportRequest request,
BranchReportResponse response,
RpcContext rpcContext)
Do branch report.
|
protected void |
doGlobalBegin(GlobalBeginRequest request,
GlobalBeginResponse response,
RpcContext rpcContext)
Do global begin.
|
protected void |
doGlobalCommit(GlobalCommitRequest request,
GlobalCommitResponse response,
RpcContext rpcContext)
Do global commit.
|
protected void |
doGlobalReport(GlobalReportRequest request,
GlobalReportResponse response,
RpcContext rpcContext)
Do global report.
|
protected void |
doGlobalRollback(GlobalRollbackRequest request,
GlobalRollbackResponse response,
RpcContext rpcContext)
Do global rollback.
|
protected void |
doGlobalStatus(GlobalStatusRequest request,
GlobalStatusResponse response,
RpcContext rpcContext)
Do global status.
|
protected void |
doLockCheck(GlobalLockQueryRequest request,
GlobalLockQueryResponse response,
RpcContext rpcContext)
Do lock check.
|
static DefaultCoordinator |
getInstance() |
static DefaultCoordinator |
getInstance(RemotingServer remotingServer) |
protected void |
handleAsyncCommitting()
Handle async committing.
|
protected void |
handleRetryCommitting()
Handle retry committing.
|
protected void |
handleRetryRollbacking()
Handle retry rollbacking.
|
void |
init()
Init.
|
AbstractResultMessage |
onRequest(AbstractMessage request,
RpcContext context) |
void |
onResponse(AbstractResultMessage response,
RpcContext context) |
void |
setRemotingServer(RemotingServer remotingServer)
only used for mock test
|
protected void |
timeoutCheck()
Timeout check.
|
protected void |
undoLogDelete()
Undo log delete.
|
handle, handle, handle, handle, handle, handle, handle, handleexceptionHandleTemplateprotected static final long COMMITTING_RETRY_PERIOD
protected static final long ASYNC_COMMITTING_RETRY_PERIOD
protected static final long ROLLBACKING_RETRY_PERIOD
protected static final long TIMEOUT_RETRY_PERIOD
protected static final long UNDO_LOG_DELETE_PERIOD
protected static final long UNDO_LOG_DELAY_DELETE_PERIOD
public static DefaultCoordinator getInstance(RemotingServer remotingServer)
public static DefaultCoordinator getInstance()
public void doBranchRemoveAsync(GlobalSession globalSession, BranchSession branchSession)
globalSession - the globalSessionbranchSession - the branchSessionpublic void doBranchRemoveAllAsync(GlobalSession globalSession)
globalSession - the globalSessionprotected void doGlobalBegin(GlobalBeginRequest request, GlobalBeginResponse response, RpcContext rpcContext) throws TransactionException
AbstractTCInboundHandlerdoGlobalBegin 在类中 AbstractTCInboundHandlerrequest - the requestresponse - the responserpcContext - the rpc contextTransactionException - the transaction exceptionprotected void doGlobalCommit(GlobalCommitRequest request, GlobalCommitResponse response, RpcContext rpcContext) throws TransactionException
AbstractTCInboundHandlerdoGlobalCommit 在类中 AbstractTCInboundHandlerrequest - the requestresponse - the responserpcContext - the rpc contextTransactionException - the transaction exceptionprotected void doGlobalRollback(GlobalRollbackRequest request, GlobalRollbackResponse response, RpcContext rpcContext) throws TransactionException
AbstractTCInboundHandlerdoGlobalRollback 在类中 AbstractTCInboundHandlerrequest - the requestresponse - the responserpcContext - the rpc contextTransactionException - the transaction exceptionprotected void doGlobalStatus(GlobalStatusRequest request, GlobalStatusResponse response, RpcContext rpcContext) throws TransactionException
AbstractTCInboundHandlerdoGlobalStatus 在类中 AbstractTCInboundHandlerrequest - the requestresponse - the responserpcContext - the rpc contextTransactionException - the transaction exceptionprotected void doGlobalReport(GlobalReportRequest request, GlobalReportResponse response, RpcContext rpcContext) throws TransactionException
AbstractTCInboundHandlerdoGlobalReport 在类中 AbstractTCInboundHandlerrequest - the requestresponse - the responserpcContext - the rpc contextTransactionException - the transaction exceptionprotected void doBranchRegister(BranchRegisterRequest request, BranchRegisterResponse response, RpcContext rpcContext) throws TransactionException
AbstractTCInboundHandlerdoBranchRegister 在类中 AbstractTCInboundHandlerrequest - the requestresponse - the responserpcContext - the rpc contextTransactionException - the transaction exceptionprotected void doBranchReport(BranchReportRequest request, BranchReportResponse response, RpcContext rpcContext) throws TransactionException
AbstractTCInboundHandlerdoBranchReport 在类中 AbstractTCInboundHandlerrequest - the requestrpcContext - the rpc contextTransactionException - the transaction exceptionprotected void doLockCheck(GlobalLockQueryRequest request, GlobalLockQueryResponse response, RpcContext rpcContext) throws TransactionException
AbstractTCInboundHandlerdoLockCheck 在类中 AbstractTCInboundHandlerrequest - the requestresponse - the responserpcContext - the rpc contextTransactionException - the transaction exceptionprotected void timeoutCheck()
protected void handleRetryRollbacking()
protected void handleRetryCommitting()
protected void handleAsyncCommitting()
protected void undoLogDelete()
public void init()
public AbstractResultMessage onRequest(AbstractMessage request, RpcContext context)
onRequest 在接口中 TransactionMessageHandlerpublic void onResponse(AbstractResultMessage response, RpcContext context)
onResponse 在接口中 TransactionMessageHandlerpublic void destroy()
destroy 在接口中 Disposablepublic void setRemotingServer(RemotingServer remotingServer)
remotingServer - Copyright © 2022 Seata. All rights reserved.