net.neoremind.fountain.eventposition
接口 EventPositionExtender
public interface EventPositionExtender
扩展已经同步的binlog的位置信息, 一般来讲需要存储binlog event的global transaction id,在使用原生row base binlog 的情况下,需要根据global transaction
id转化为binlog file name和position。
- 作者:
- hexiufeng
extend
BinlogAndOffsetSyncPoint extend(SyncPoint groupIdPoint,
MysqlDataSource dataSource)
throws IOException,
NoSuchAlgorithmException
- 从给定的数据源中读取与global transaction id有关的信息,比如binlog file name和position用于同步
- 参数:
groupIdPoint - 同步点dataSource - datasource
- 返回:
- BinlogAndOffsetSyncPoint
- 抛出:
IOException - 读取mysql 可能返回io异常
NoSuchAlgorithmException - 执行query方法可能返回NoSuchAlgorithmException异常
Copyright © 2016 neoremind. All rights reserved.