net.neoremind.fountain.rowbaselog.event
类 GtidEvent
java.lang.Object
net.neoremind.fountain.event.BaseLogEvent
net.neoremind.fountain.rowbaselog.event.GtidEvent
- 所有已实现的接口:
- Serializable
public class GtidEvent
- extends BaseLogEvent
GTID event
对于MySQL5.6.5及之后的版本,如果GTID_MODE = ON, 每个事务的replicate都会前置一个type code=EventConstant.GTID_EVENT的事件。
这个event用于标示GTID(Global Transaction Identifiers)即全局事务标识。
- 从以下版本开始:
- 2015-12
- 作者:
- zhangxu
- 另请参见:
- binlog-event-type,
序列化表格
| 从类 java.lang.Object 继承的方法 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GtidEvent
public GtidEvent(BinlogEventHeader eventHeader)
- 构造方法
- 参数:
eventHeader - event header
parseData
public BaseLogEvent parseData(ByteBuffer buf)
- 从类
BaseLogEvent 复制的描述
- 解析二进制数据填充event属性数据
- 指定者:
- 类
BaseLogEvent 中的 parseData
getSid
public byte[] getSid()
setSid
public void setSid(byte[] sid)
getGtId
public long getGtId()
setGtId
public void setGtId(long gtId)
Copyright © 2016 neoremind. All rights reserved.