-
Notifications
You must be signed in to change notification settings - Fork 15
Consumer flow strategy (take two) #374
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
Conversation
08d63a4
to
97610f0
Compare
@henry701 I made some progress. WRT the tasks I mentioned:
I did not make the call to Next steps are Javadoc and documentation. Let me know what you think. |
Rough draft.
To deal with ignored messages at the beginning of the first chunk of a subscription. This is used with consumer flow strategy.
0d98186
to
f7c0c10
Compare
This avoids the "bootstrap class path not set in conjunction with -source 8" compiler warning and avoids the use of APIs not available on Java 8.
To test flow control.
I'll have a look at the code later, busy week here, unfortunately. But regarding the comment, yeah, seems nice. Do we need chunk context being a type parameter? It makes sense for having a wide variety of strategies, but maybe we can just drop the idea since the implementation has been greatly simplified. Then we don't need to cast in Client and nothing needs to use generics. |
Looks superb |
The chunk context is used only in the Thanks for the review! |
Sorry for my comment above, I did not get your comment right. You are suggesting to make the "chunk context" the type we need for the consumer flow strategy, that is |
I'll test this with the use-case of issue #333 later |
It worked like a charm in some local ad-hoc tests, never surpassing a certain threshold of messages (and certainly not two chunks at a time), inspecting the map of in-memory messages that I used here. |
Thanks @henry701 for testing this! Let's merge it. |
Consumer flow strategy (take two)
Rough draft.