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

com.taosdata.jdbc.tmq.Assignment Maven / Gradle / Ivy

There is a newer version: 3.4.0
Show newest version
package com.taosdata.jdbc.tmq;

import com.alibaba.fastjson.annotation.JSONField;

public class Assignment {
    @JSONField(name = "vgroup_id")
    private int vgId;
    @JSONField(name = "offset")
    private long currentOffset;
    private long begin;
    private long end;

    public Assignment() {
    }

    public Assignment(int vgId, long currentOffset, long begin, long end) {
        this.vgId = vgId;
        this.currentOffset = currentOffset;
        this.begin = begin;
        this.end = end;
    }

    public void setVgId(int vgId) {
        this.vgId = vgId;
    }

    public void setCurrentOffset(long currentOffset) {
        this.currentOffset = currentOffset;
    }

    public void setBegin(long begin) {
        this.begin = begin;
    }

    public void setEnd(long end) {
        this.end = end;
    }

    public int getVgId() {
        return vgId;
    }

    public long getCurrentOffset() {
        return currentOffset;
    }

    public long getBegin() {
        return begin;
    }

    public long getEnd() {
        return end;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy