Skip to content

Commit

Permalink
Make MaxPollCount Configurable.
Browse files Browse the repository at this point in the history
  • Loading branch information
hchepey-clari committed Jul 31, 2024
1 parent f2796a9 commit bbd168b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public QueueMonitor(String queueName) {
this.peekedMessages = new LinkedBlockingQueue<>();
this.executorService =
new ThreadPoolExecutor(
1, 1, 0L, TimeUnit.MILLISECONDS, new ArrayBlockingQueue<>(maxPollCount));
1, 1, 0L, TimeUnit.MILLISECONDS, new ArrayBlockingQueue<>(getMaxPollCount()));
}

public List<QueueMessage> pop(int count, int waitTime, TimeUnit timeUnit) {
Expand Down

0 comments on commit bbd168b

Please sign in to comment.