UNPKG

jspurefix

Version:
18 lines (15 loc) 698 B
/* a message store that represents a single entity which can be queried for recovery */ import { IFixMsgStoreRecord } from './fix-msg-store-record' import { IFixMsgStoreState } from './fix-msg-store-state' export interface IFixMsgStore { clear: () => Promise<IFixMsgStoreState> getState: () => Promise<IFixMsgStoreState> put: (record: IFixMsgStoreRecord) => Promise<IFixMsgStoreState> get: (seq: number) => Promise<IFixMsgStoreRecord> exists: (seq: number) => Promise<boolean> // if to = 0, then to the end of sequence getSeqNumRange: (from: number, to?: number) => Promise<IFixMsgStoreRecord[]> getMsgType: (msgType: string) => Promise<IFixMsgStoreRecord[]> }