Skip to content

Commit

Permalink
[ENHANCEMENT] Apply classic queue version 2
Browse files Browse the repository at this point in the history
  • Loading branch information
quantranhong1999 committed May 13, 2024
1 parent 470f41f commit 2f0fd79
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,11 @@ public Builder deliveryLimit(long deliveryLimit) {
return this;
}

public Builder classicQueueVersion(int version) {
arguments.put("x-queue-version", version);
return this;
}

public Builder put(String key, Object value) {
arguments.put(key, value);
return this;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -817,6 +817,8 @@ public QueueArguments.Builder workQueueArgumentsBuilder() {
if (useQuorumQueues) {
builder.quorumQueue().replicationFactor(quorumQueueReplicationFactor);
quorumQueueDeliveryLimit.ifPresent(builder::deliveryLimit);
} else {
builder.classicQueueVersion(2);
}
return builder;
}
Expand Down

0 comments on commit 2f0fd79

Please sign in to comment.