类 net.neoremind.fountain.support.TrxContext
的使用

使用 TrxContext 的软件包
net.neoremind.fountain.support   
 

net.neoremind.fountain.support 中 TrxContext 的使用
 

类型参数类型为 TrxContext 的 net.neoremind.fountain.support 中的字段
static ThreadLocal<TrxContext> ThreadHolder.TRX_CONTEXT
          事务上下文
 

返回 TrxContext 的 net.neoremind.fountain.support 中的方法
static TrxContext TrxContext.factory()
          静态构造方法
static TrxContext ThreadHolder.getTrxContext()
          获取事务上下文
 

参数类型为 TrxContext 的 net.neoremind.fountain.support 中的方法
 void EventListener.handle(BaseLogEvent event, TrxContext trxContext)
          当fountain接收到某个binlog event时候会根据具体类型,找到回调器,然后调用,一般会设置一些变量信息到TrxContext中
 void FormatDescriptionEventCallback.handle(FormatDescriptionEvent event, TrxContext trxContext)
           
 void GtIdEventCallback.handle(GtidEvent event, TrxContext trxContext)
           
 void QueryLogEventCallback.handle(QueryLogEvent event, TrxContext trxContext)
           
 void RotateEventCallback.handle(RotateEvent event, TrxContext trxContext)
           
 void RowsLogEventCallback.handle(T event, TrxContext trxContext)
           
 void EventCallback.handle(T event, TrxContext trxContext)
          在当前ThreadLocal上下文中处理某个event,一般的操作是根据event传输数据的内容设置context一些上下文
 void XidLogEventCallback.handle(XidLogEvent event, TrxContext trxContext)
           
static void ThreadHolder.setTrxContext(TrxContext trxContext)
          初始化线程上下文
 



Copyright © 2016 neoremind. All rights reserved.