目录
一、Core
Core接口为seata处理全球事务协调器TC的核心处理器,它继承ResourceManagerOutbound接口,接受来自RM的rpc网络请求(branchRegister,branchReport,lockQuery)。同时继承TransactionManager接口,接受来自TM的rpc网络请求(begin,commit,rollback,getStatus),另外提供提供3个接口方法。
public interface Core extends TransactionManager, ResourceManagerOutbound {
// 设置RM输入接口,提供向RM发送rpc的两个方法(branchCommit,branchRollback)
void setResourceManagerInbound(ResourceManagerInbound resourceManagerInbound);
// 接受TM的globalCommit,此处为具体globalCommit逻辑
void doGlobalCommit(GlobalSession globalSession, boo