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

'pendingMessages' LinkedBlockingQueue capacity #6

Closed
KenFromNN opened this issue Dec 7, 2012 · 3 comments
Closed

'pendingMessages' LinkedBlockingQueue capacity #6

KenFromNN opened this issue Dec 7, 2012 · 3 comments

Comments

@KenFromNN
Copy link
Contributor

Hello,

Is there any plans to allow configuring the 'pendingMessages' LinkedBlockingQueue capacity?
I think it would be nice to have such possibility to prevent excessive queue expansion when producer thread puts more elements than the consumer consumes.

@bennidi
Copy link
Owner

bennidi commented Dec 7, 2012

Yes, I think that's a valid requirement. I'm going to introduce a configuration object to hold all configurable properties and provide a corresponding constructor. I could integrate a parameter for the queue capacity or even make the queue a configurable parameter. Maybe that would be the better choice as this allows for different queuing strategies (although it also introduces a new source for bugs but that's responsibility of the user then).

@bennidi
Copy link
Owner

bennidi commented Dec 11, 2012

I added a property to configure the maximum queue capacity. This is available in version 1.0.4.RC. Enjoy!

@bennidi bennidi closed this as completed Dec 11, 2012
@KenFromNN
Copy link
Contributor Author

Great. Thanks a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants