Skip to content
This repository has been archived by the owner on Oct 8, 2020. It is now read-only.

Commit

Permalink
Changing the default for fillExecutorEachCycle to true (#151)
Browse files Browse the repository at this point in the history
A couple of blogs already propose to have the QueueProcessor behavior to fill up the
worker thread pool every poll cycle, rather than processing a single message every interval.

Co-authored-by: Rob Zienert <[email protected]>
  • Loading branch information
emagana and robzienert authored Aug 25, 2020
1 parent d83c170 commit 95aca17
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class QueueProcessor(
private val activators: List<Activator>,
private val publisher: EventPublisher,
private val deadMessageHandler: DeadMessageCallback,
private val fillExecutorEachCycle: Boolean = false,
private val fillExecutorEachCycle: Boolean = true,
private val requeueDelay: Duration = Duration.ofSeconds(0),
private val requeueMaxJitter: Duration = Duration.ofSeconds(0)
) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class QueueProperties {
var handlerThreadNamePrefix: String = "handlers-"
var handlerCorePoolSize: Int = 20
var handlerMaxPoolSize: Int = 20
var fillExecutorEachCycle: Boolean = false
var fillExecutorEachCycle: Boolean = true
var requeueDelaySeconds: Long = 0
var requeueMaxJitterSeconds: Long = 0
}

0 comments on commit 95aca17

Please sign in to comment.