Skip to content

Commit ab240b8

Browse files
committed
No validation for consumer priority
Accepted values are -(2^31) to 2^31 - 1.
1 parent b502ea6 commit ab240b8

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/main/java/com/rabbitmq/client/amqp/impl/AmqpConsumerBuilder.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,6 @@ public ConsumerBuilder initialCredits(int initialCredits) {
6060

6161
@Override
6262
public ConsumerBuilder priority(int priority) {
63-
if (priority < 0 || priority > 255) {
64-
throw new IllegalArgumentException(
65-
"The consumer priority must be between 0 and 255. "
66-
+ "Recommended values are between 0 and 5.");
67-
}
6863
this.properties.put("rabbitmq:priority", priority);
6964
return this;
7065
}

0 commit comments

Comments
 (0)