...
Producer headers
Header | Type | Description |
---|---|---|
CamelIronMQOperation | String | If value set to CamelIronMQClearQueue the queue is cleared of unconsumed messages. |
CamelIronMQMessageId | String or io.iron.ironmq.Ids | The id of the IronMQ message as a String when sending a single message, or a Ids object when sending a array of strings. See message body |
Consumer headers
Header | Type | Description |
---|---|---|
CamelIronMQMessageId | String | The id of the message. |
CamelIronMQReservationId | String | The reservation id of the message. |
CamelIronMQReservedCount | String | The number of times this message has been reserved. |
Message body when producing
...
In the latter case the batch of strings will be send to IronMQ as one request, creating one message pr. element in the array.
Consumer example
Consume 50 messages pr. poll from the queue 'testqueue' on aws eu, and save the messages to files.
Code Block | ||
---|---|---|
| ||
from("ironmq:testqueue?ironMQCloud=mq-aws-eu-west-1.iron.io&projectId=myIronMQProjectid&token=myIronMQToken&maxMessagesPerPoll=50")
.to("file:somefolder); |
...
Producer example
Dequeue from activemq jms and enqueue the messages on IronMQ.
Code Block | ||
---|---|---|
| ||
from("activemq:foo)
.to("ironmq:testqueue?projectId=myIronMQProjectid&token=myIronMQToken"); |