Skip to content

Conversation

akshaisarma
Copy link
Member

No description provided.

@akshaisarma akshaisarma added this to the 0.2.5 milestone Oct 4, 2017
@akshaisarma akshaisarma requested a review from hbxie October 4, 2017 23:44
@coveralls
Copy link

Coverage Status

Coverage increased (+0.01%) to 99.438% when pulling 7c0413e on buffering-subscriber into a137dd7 on master.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.01%) to 99.438% when pulling aba7658 on buffering-subscriber into a137dd7 on master.

* 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
Copy link
Contributor

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".

Copy link
Member Author

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<>();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

testMessages.clear() ?

Copy link
Member Author

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

Copy link
Member Author

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.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.01%) to 99.438% when pulling 573276e on buffering-subscriber into a137dd7 on master.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.01%) to 99.438% when pulling 573276e on buffering-subscriber into a137dd7 on master.

@akshaisarma akshaisarma merged commit cec0c8a into master Oct 5, 2017
@akshaisarma akshaisarma deleted the buffering-subscriber branch October 5, 2017 00:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants