fixparser-plugin-messagestore-kdb 9.4.5 → 9.4.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4349,8 +4349,8 @@ var MessageStoreKDB = class {
4349
4349
  this.writeToKDB();
4350
4350
  }
4351
4351
  }
4352
- getByMsgSequence() {
4353
- throw new Error("Not implemented, please use getByMsgSequenceAsync()");
4352
+ getByMsgSequence(msgSequence) {
4353
+ return this.inMemoryMessageStore.getByMsgSequence(msgSequence);
4354
4354
  }
4355
4355
  async getByMsgSequenceAsync(msgSequence) {
4356
4356
  const getRowById = `select message from ${this.tableName} where msgSequence=${msgSequence}i`;
@@ -4444,6 +4444,9 @@ var MessageStoreKDB = class {
4444
4444
  getCapacity() {
4445
4445
  return this.maxBufferSize;
4446
4446
  }
4447
+ async flushAsync() {
4448
+ await this.writeToKDB();
4449
+ }
4447
4450
  stopWriteInterval() {
4448
4451
  clearInterval(this.writeIntervalId);
4449
4452
  }