tech.ydb.topic.read.impl.OffsetsRangeImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ydb-sdk-topic Show documentation
Show all versions of ydb-sdk-topic Show documentation
Topic client implementation
The newest version!
package tech.ydb.topic.read.impl;
import tech.ydb.topic.description.OffsetsRange;
/**
* @author Nikolay Perfilov
*/
public class OffsetsRangeImpl implements OffsetsRange {
private long start;
private long end;
public OffsetsRangeImpl(long start, long end) {
this.start = start;
this.end = end;
}
public OffsetsRangeImpl(OffsetsRange offsetsRange) {
this.start = offsetsRange.getStart();
this.end = offsetsRange.getEnd();
}
@Override
public long getStart() {
return start;
}
@Override
public long getEnd() {
return end;
}
public void setStart(long start) {
this.start = start;
}
public void setEnd(long end) {
this.end = end;
}
}