All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.alibaba.tmq.common.domain.FlushOffset Maven / Gradle / Ivy

package com.alibaba.tmq.common.domain;

import java.io.Serializable;
import java.util.Date;

import com.alibaba.tmq.common.constants.Constants;

public class FlushOffset implements Constants, Serializable {

	private static final long serialVersionUID = 1401015257961651911L;

	/** 唯一自增ID */
	private long id;
	
	/** 创建时间 */
	private Date gmtCreate;
	
	/** 修改时间 */
	private Date gmtModified;
	
	//起始偏移量
	private long beginOffset;
	
	//结束偏移量
	private long endOffset;
	
	//服务器
	private String server;
	
	//服务器分组ID
	private long serverGroupId;
	
	//时间分区
	private String timePeriod;
	
	//分桶
	private String bucket;
	
	/** 状态 */
	private int status;

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public Date getGmtCreate() {
		return gmtCreate;
	}

	public void setGmtCreate(Date gmtCreate) {
		this.gmtCreate = gmtCreate;
	}

	public Date getGmtModified() {
		return gmtModified;
	}

	public void setGmtModified(Date gmtModified) {
		this.gmtModified = gmtModified;
	}

	public long getBeginOffset() {
		return beginOffset;
	}

	public void setBeginOffset(long beginOffset) {
		this.beginOffset = beginOffset;
	}

	public long getEndOffset() {
		return endOffset;
	}

	public void setEndOffset(long endOffset) {
		this.endOffset = endOffset;
	}

	public String getServer() {
		return server;
	}

	public void setServer(String server) {
		this.server = server;
	}

	public long getServerGroupId() {
		return serverGroupId;
	}

	public void setServerGroupId(long serverGroupId) {
		this.serverGroupId = serverGroupId;
	}

	public String getTimePeriod() {
		return timePeriod;
	}

	public void setTimePeriod(String timePeriod) {
		this.timePeriod = timePeriod;
	}

	public String getBucket() {
		return bucket;
	}

	public void setBucket(String bucket) {
		this.bucket = bucket;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	@Override
	public String toString() {
		return "FlushOffset [id=" + id + ", gmtCreate=" + gmtCreate
				+ ", gmtModified=" + gmtModified + ", beginOffset="
				+ beginOffset + ", endOffset=" + endOffset + ", server="
				+ server + ", serverGroupId=" + serverGroupId + ", timePeriod="
				+ timePeriod + ", bucket=" + bucket + ", status=" + status
				+ "]";
	}
	
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy