Hi,

Thanks for the answer, however I got there without using concurrent
consumers.
2 years ago I was doing something ... well ... similar in a way.
Anyway... I am using a method call during delay [1] and in my bean I check
the difference between current time and timestamp on the message and delay
for as long as it takes to reach the DELAY I want it to be.
Since all messages are to be delayed by the same amount of time, there's no
way I will get a message which is to be delayed for longer than next message
in the line.
Worst case scenario:
I get two messages at the same time.
First one is delayed by DELAY, next one is delayed by 0.

Thanks,
Krystian

[1]
from("activemq:redeliveryQueue").delay().expression(bean(DelayerBean.class,
"sendAtTime")).to("activemq:testQueue")

-- 
View this message in context: 
http://camel.465427.n5.nabble.com/Delayer-and-asyncDelayed-how-to-delay-asynchronously-tp3252456p3252973.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to