rabbitmq / rabbitmq-objc-client

RabbitMQ client for Objective-C and Swift
https://rabbitmq.com
Other
241 stars 84 forks source link

Passing ttl option to RabbitMQ client in objective C #142

Closed sergio7654 closed 5 years ago

sergio7654 commented 5 years ago

Hi guys I'm in desperate need of help on this..

I'm trying to set up a channel with time to live option in the client for ios RabbitMQ in objective C but I can't find how to pass argument "x-message-ttl" when creating the queue. I've tried the code below but ends crashing .

NSDictionary args = @{@"x-message-ttl":@1000}; RMQQueue q = [ch queue:@"ipad_madrid" options:RMQQueueDeclareNoOptions arguments:args];

Without the options and arguments parameters it works like charm.

Thank you so much!!

michaelklishin commented 5 years ago

Thank you for your time.

Team RabbitMQ uses GitHub issues for specific actionable items engineers can work on. GitHub issues are not used for questions, investigations, root cause analysis, discussions of potential issues, etc (as defined by this team).

We get at least a dozen of questions through various venues every single day, often light on details. At that rate GitHub issues can very quickly turn into a something impossible to navigate and make sense of even for our team. Because GitHub is a tool our team uses heavily nearly every day, the signal/noise ratio of issues is something we care about a lot.

Please post this to rabbitmq-users.

Thank you.

michaelklishin commented 5 years ago

There are tests that use optional queue arguments. I cannot comment on "crashing" without a stack trace and server logs.

This is mailing list material

michaelklishin commented 5 years ago

Also, specifically message TTL can be configured using a policy which involves no options on the client end.