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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fixparser-plugin-messagestore-kdb",
3
- "version": "9.4.5",
3
+ "version": "9.4.6",
4
4
  "description": "FIXParser KDB+ Message Store Plugin",
5
5
  "files": [
6
6
  "./build/",
@@ -1,5 +1,5 @@
1
- import type { IFIXParser, IMessageStore, Logger } from 'fixparser';
2
- import { type IMessage } from 'fixparser-common';
1
+ import type { IFIXParser, Logger } from 'fixparser';
2
+ import { type IAsyncMessageStore, type IMessage } from 'fixparser-common';
3
3
  export type MessageStoreKDBOptions = {
4
4
  host: string;
5
5
  port: number;
@@ -10,7 +10,7 @@ export type MessageStoreKDBOptions = {
10
10
  logger?: Logger;
11
11
  onReady: () => void;
12
12
  };
13
- export declare class MessageStoreKDB implements IMessageStore<IMessage> {
13
+ export declare class MessageStoreKDB implements IAsyncMessageStore<IMessage> {
14
14
  /**
15
15
  * A number representing the next expected message sequence number.
16
16
  * @private
@@ -31,7 +31,7 @@ export declare class MessageStoreKDB implements IMessageStore<IMessage> {
31
31
  private sendAsync;
32
32
  private writeToKDB;
33
33
  add(message: IMessage): void;
34
- getByMsgSequence(): IMessage | undefined;
34
+ getByMsgSequence(msgSequence: number): IMessage | undefined;
35
35
  getByMsgSequenceAsync(msgSequence: number): Promise<IMessage | undefined>;
36
36
  /**
37
37
  * Updates a `Message` instance in the store.
@@ -79,6 +79,7 @@ export declare class MessageStoreKDB implements IMessageStore<IMessage> {
79
79
  resize(newCapacity: number): void;
80
80
  clear(): void;
81
81
  getCapacity(): number;
82
+ flushAsync(): Promise<void>;
82
83
  stopWriteInterval(): void;
83
84
  /**
84
85
  * Set the next message sequence number.