We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b502ea6 commit ab240b8Copy full SHA for ab240b8
src/main/java/com/rabbitmq/client/amqp/impl/AmqpConsumerBuilder.java
@@ -60,11 +60,6 @@ public ConsumerBuilder initialCredits(int initialCredits) {
60
61
@Override
62
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
- }
68
this.properties.put("rabbitmq:priority", priority);
69
return this;
70
}
0 commit comments