Examples of XidEvent


Examples of com.google.code.or.binlog.impl.event.XidEvent

      String fileNumStr = fileName.substring(fileName.lastIndexOf(_binlogFilePrefix) + _binlogFilePrefix.length() + 1);
      _currFileNum = Integer.parseInt(fileNumStr);
    }
    else if (event instanceof XidEvent)
    {
      XidEvent xe = (XidEvent)event;
      long xid = xe.getXid();
      _log.debug("Treating XID event with xid = " + xid + " as commit for the transaction");
      endXtion(xe);
      return;
    }
    else if (event instanceof WriteRowsEvent)
View Full Code Here

Examples of com.google.code.or.binlog.impl.event.XidEvent

   * in replication because the only important property of transaction numbers is that different
   * transactions have different numbers (relative order does not matter).
   */
  public void parse(XInputStream is, BinlogEventV4Header header, BinlogParserContext context)
  throws IOException {
    final XidEvent event = new XidEvent(header);
    event.setXid(is.readLong(8));
    context.getEventListener().onEvents(event);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.