ravendb
Version:
RavenDB client for Node.js
28 lines • 591 B
JavaScript
export class HiloRangeValue {
_minId;
_maxId;
_serverTag;
_current;
constructor(minId = 1, maxId = 0, serverTag) {
this._minId = minId;
this._maxId = maxId;
this._current = minId - 1;
this._serverTag = serverTag;
}
get minId() {
return this._minId;
}
get maxId() {
return this._maxId;
}
get current() {
return this._current;
}
get serverTag() {
return this._serverTag;
}
increment() {
return ++this._current;
}
}
//# sourceMappingURL=HiloRangeValue.js.map