-
Notifications
You must be signed in to change notification settings - Fork 10
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
Make MaxPollCount Configurable. #18
Conversation
@@ -1,6 +1,7 @@ | |||
dependencies { | |||
|
|||
implementation "redis.clients:jedis:${versions.revJedis}" | |||
implementation 'org.springframework.boot:spring-boot-starter' |
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.
We would like to avoid bringing this in here.
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.
May I know why?
This dependency is required to initialise QueueMonitorProperties
@@ -42,6 +42,14 @@ public abstract class QueueMonitor { | |||
|
|||
private int maxPollCount = 100; | |||
|
|||
public void setMaxPollCount(int maxPollCount) { | |||
this.maxPollCount = maxPollCount; |
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.
The ArrayBlockingQueue is being initalized in the constructor with maxPollCount. If you wish to make use of this, please propagate it.
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.
Thanks for catching that. Done.
@c4lm - Can you please review this PR again? |
@manan164 @v1r3n @LuisLainez @c4lm - Can you please review this PR? |
Currently we are facing issue with having the MaxPollCount hard coded to 100. That has reduced the performance of our system drastically.
This change is to make it configurable.