-
Notifications
You must be signed in to change notification settings - Fork 18
Adding a helper subscriber #7
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
* This implements a {@link Subscriber} that provides a base subscriber that buffers a fixed number of messages read. | ||
* See {@link BufferingSubscriber#maxUncommitedMessages}. | ||
* | ||
* It provides implementations of {@link Subscriber#commit(String, int)}, {@link Subscriber#fail(String, int)} and |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove one blank between "provides" and "implementations".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
|
||
@Override | ||
public void close() { | ||
testMessages = new LinkedList<>(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
testMessages.clear() ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On purpose to test what haveMessages does when we return an empty list. See line 84 in this file
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry misread your comment. Will fix.
No description provided.