|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectnet.neoremind.fountain.support.EventListener
public class EventListener
binlog event的回调监听器
| 方法摘要 | |
|---|---|
void |
addCallback(Class<? extends BaseLogEvent> clazz,
EventCallback cb)
为某种binlog event添加回调 |
static EventListener |
factory()
静态构造方法 |
void |
handle(BaseLogEvent event,
TrxContext trxContext)
当fountain接收到某个binlog event时候会根据具体类型,找到回调器,然后调用,一般会设置一些变量信息到 TrxContext中 |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 方法详细信息 |
|---|
public static EventListener factory()
public void addCallback(Class<? extends BaseLogEvent> clazz,
EventCallback cb)
clazz - event类型cb - 事件回调
public void handle(BaseLogEvent event,
TrxContext trxContext)
TrxContext中
event - binlog事件trxContext - 事务上下文
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||