com.alibaba.otter.canal.store.model.Events Maven / Gradle / Ivy
package com.alibaba.otter.canal.store.model;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import org.apache.commons.lang.builder.ToStringBuilder;
import com.alibaba.otter.canal.common.utils.CanalToStringStyle;
import com.alibaba.otter.canal.protocol.position.PositionRange;
/**
* 代表一组数据对象的集合
*
* @author jianghang 2012-6-14 下午09:07:41
* @version 1.0.0
*/
public class Events implements Serializable {
private static final long serialVersionUID = -7337454954300706044L;
private PositionRange positionRange = new PositionRange();
private List events = new ArrayList<>();
public List getEvents() {
return events;
}
public void setEvents(List events) {
this.events = events;
}
public PositionRange getPositionRange() {
return positionRange;
}
public void setPositionRange(PositionRange positionRange) {
this.positionRange = positionRange;
}
public String toString() {
return ToStringBuilder.reflectionToString(this, CanalToStringStyle.DEFAULT_STYLE);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy