There is no support to declare dead letter queues with custom arguments. I can find a TODO in RabbitMQDeclareSupport class.
My requirement is to set a TTL on messages in dead letter queue while queue is declared by Camel.
What I have tried:
If I create DLQ separately by camel with TTL and use that queue name in original queue then I get exception that TTL value can't be different. Because the declare parameter in RabbitMQEndpoint class declares both original queue and dead letter queue, there is no separate option if someone don't want to declare dead letter queue.
Let me know if there is any workaround except creating queues manually.