queue = new PriorityQueue({ comparator: compareFragments}); -> require('js-priority-queue');. this module does not contain serialize/deserialize methods so has to be done manually. Probably by calling Dequeue till the queue is empty and load them one by one using Queue
queued: any = new LRU({ max: 500, maxAge: 1000 * 60 * 60 * 24 }); -> require("lru-cache");. this module contains the methods dump & load that can be used.
blacklist: Set<string> = new Set(); can be serialized/deserialized by converting the Set to an Array and vice-versa.
Allow data structures inside https://github.com/TREEcg/event-stream-client/blob/main/packages/actor-init-ldes-client/lib/Bookkeeper.ts to be exportable and importable.
queue = new PriorityQueue({ comparator: compareFragments});
-> require('js-priority-queue');. this module does not contain serialize/deserialize methods so has to be done manually. Probably by callingDequeue
till the queue is empty and load them one by one usingQueue
queued: any = new LRU({ max: 500, maxAge: 1000 * 60 * 60 * 24 });
-> require("lru-cache");. this module contains the methodsdump
&load
that can be used.blacklist: Set<string> = new Set();
can be serialized/deserialized by converting theSet
to anArray
and vice-versa.