private long last;
private long maxTimestamp;
public TimestampService(String hostAndPort) {
try {
timestampServiceTable = new TimestampServiceTable(hostAndPort);
first = last = maxTimestamp = timestampServiceTable.getLastMaxTimestamp();
addBatch();
} catch (IOException e) {
throw DbException.convert(e);
}