Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add channel QoS setting #13

Merged
merged 1 commit into from
Jan 2, 2017
Merged

Add channel QoS setting #13

merged 1 commit into from
Jan 2, 2017

Conversation

acogoluegnes
Copy link
Contributor

Fixes #11

@michaelklishin michaelklishin self-assigned this Dec 30, 2016
*
* @see com.rabbitmq.client.Channel#basicQos(int)
*/
private final int channelsQos;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this value have to be final? QoS changes on the fly are not very common but possible in AMQP 0-9-1.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It doesn't have to be final. The intent is to have a RMQConnection creating AMQP channels with the same settings, not more. Not sure users are coding against the RMQConnection class, but more against the JMS *Connection interfaces. We can make it volatile and expose it with getter/setter, it should be harmless.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, this is not how Java client works but we can safely switch it to per-session (connection) strategy later if JMS users care enough. Going the other way would be a breaking change.

@@ -47,7 +47,9 @@
*/
public class RMQConnection implements Connection, QueueConnection, TopicConnection {

private final Logger logger = LoggerFactory.getLogger(RMQConnection.class);;
public static final int NO_CHANNEL_QOS = -1;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the intent here to have no limit by default? Then it should be 0.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The intent is to skip any call to basicQos: 2a7ffc4#diff-9f6f94ce0c4ddde9be9f61d3dba10487R339

@michaelklishin michaelklishin merged commit 97f528c into master Jan 2, 2017
@acogoluegnes acogoluegnes deleted the rabbitmq-jms-client-11 branch March 21, 2019 08:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants