I implemented CAMEL-913 in the timer component by adding a Producer and an 
additional parameter to the endpoint. Time for a sanity check before I submit 
the patch.

New parameter:
sendTo - The endpoint to send the incoming Exchange to when the timer fires. 

Both value may be set in the URI and/or in the incoming message headers.

For now it only supports a one time event not a repeating timer.

sendTo and delay may be set in the Headers of the incoming message using 
"TimerSendTo" and "TimerDelay"

2 Questions.

1 - Does sendTo make sense for the name?
2 - Where should I put constants for those 2 header values? Create a 
TimerConstants or some other location?

from("direct:start")
  .to("timer://myTimerName?delay=1000&sendTo=mock:result");

Reply via email to