ravendb
Version:
RavenDB client for Node.js
32 lines • 735 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.HiloRangeValue = void 0;
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;
}
}
exports.HiloRangeValue = HiloRangeValue;
//# sourceMappingURL=HiloRangeValue.js.map