Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extract Data Queue functions in to a real DataQueue class #97

Open
kadler opened this issue Feb 7, 2020 · 3 comments · May be fixed by #151
Open

Extract Data Queue functions in to a real DataQueue class #97

kadler opened this issue Feb 7, 2020 · 3 comments · May be fixed by #151
Assignees
Labels
enhancement New feature or request keep-open Exempts stale action from auto closing the issue/pr.
Milestone

Comments

@kadler
Copy link
Member

kadler commented Feb 7, 2020

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 kadler added the enhancement New feature or request label Feb 7, 2020
@kadler kadler added this to the Version 1.0 milestone Feb 7, 2020
@kadler
Copy link
Member Author

kadler commented Feb 7, 2020

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

@kadler
Copy link
Member Author

kadler commented Mar 12, 2020

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

@github-actions
Copy link

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

@github-actions github-actions bot added the stale label Apr 12, 2020
@abmusse abmusse added the keep-open Exempts stale action from auto closing the issue/pr. label Apr 12, 2020
@github-actions github-actions bot closed this as completed Oct 6, 2020
@kadler kadler reopened this Oct 6, 2020
@kadler kadler removed the stale label Oct 6, 2020
@kadler kadler linked a pull request Oct 21, 2020 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request keep-open Exempts stale action from auto closing the issue/pr.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants