nodejs-itoolkit icon indicating copy to clipboard operation
nodejs-itoolkit copied to clipboard

Extract Data Queue functions in to a real DataQueue class

Open kadler opened this issue 5 years ago • 3 comments

It should work something like this:

let dq = new DataQueue(transport, "MYLIB", "MYQUEUE");

await dq.send("This is a string");
await dq.sendAsEbcdic(*This is converted to UTF-8 bytes");

let s1 = await dq.receive();
let s2 = await dq.receiveFromEbcdic();

await dq.clear();

Additionally, objects and arrays could be serialized to JSON strings and sent.

Toolkit.sendToDataQueue and Toolkit.receiveFromDataQueue should be deprecated and removed in 2.0.

kadler avatar Feb 07 '20 21:02 kadler

Might be good to have create/delete methods as well.

kadler avatar Feb 07 '20 21:02 kadler

This is not needed for v1.0, moving to v1.1

kadler avatar Mar 12 '20 23:03 kadler

:wave: Hi! This issue has been marked stale due to inactivity. If no further activity occurs, it will automatically be closed.

github-actions[bot] avatar Apr 12 '20 00:04 github-actions[bot]