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

Not apply argument Queue consume in iOS #18

Open
hmunoz opened this issue May 20, 2019 · 1 comment
Open

Not apply argument Queue consume in iOS #18

hmunoz opened this issue May 20, 2019 · 1 comment

Comments

@hmunoz
Copy link

hmunoz commented May 20, 2019

in iOS argument like this:
this.queue = new Queue(this.connection, { name: 'test-' + DeviceInfo.getUniqueID(), passive: false, durable: false, exclusive: false, autoDelete: true, consumer_arguments: { 'x-priority': 1,'ackMode' : false, 'auto_delete': true, 'exclusive': false} });
not apply this configuration, only x-priority with -5456546 example.

@hmunoz
Copy link
Author

hmunoz commented May 20, 2019

in iOS argument like this:
this.queue = new Queue(this.connection, { name: 'test-' + DeviceInfo.getUniqueID(), passive: false, durable: false, exclusive: false, autoDelete: true, consumer_arguments: { 'x-priority': 1,'ackMode' : false, 'auto_delete': true, 'exclusive': false} });
not apply this configuration, only x-priority with -5456546 example.

This code solves for my case
Now if the consumer parameters are present
NSDictionary *tmp_arguments = @{}; if ([config objectForKey:@"consumer_arguments"] != nil){ NSDictionary *consumer_arguments = [config objectForKey:@"consumer_arguments"]; tmp_arguments = @{@"x-priority": [[RMQSignedShort alloc] init:1], @"auto_delete": [[RMQBoolean alloc] init:YES], @"ackMode": [[RMQBoolean alloc] init:NO], @"exclusive": [[RMQBoolean alloc] init:NO]}; }

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

No branches or pull requests

1 participant