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

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

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

public class ConsumerRecord {
    private final String topic;

    private final String dbName;
    private final int vGroupId;
    private long offset;
    private final V value;

    public ConsumerRecord(String topic,
                          String dbName,
                          int vGroupId,
                          V value) {
        this.topic = topic;
        this.dbName = dbName;
        this.vGroupId = vGroupId;
        this.value = value;
    }

    public ConsumerRecord(String topic, String dbName, int vGroupId, long offset, V value) {
        this.topic = topic;
        this.dbName = dbName;
        this.vGroupId = vGroupId;
        this.offset = offset;
        this.value = value;
    }

    public String getTopic() {
        return topic;
    }

    public String getDbName() {
        return dbName;
    }

    public int getVGroupId() {
        return vGroupId;
    }

    public V value() {
        return value;
    }

    public long getOffset() {
        return offset;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy