http://camel.apache.org/delayer.html lists at the end an example which 
delegates to a method computing the delay-time.

Jan

from("activemq:foo").
  delay().method("someBean", "computeDelay").
  to("activemq:bar");

public class SomeBean {
  public long computeDelay() { 
     // use java code to compute a delay value in millis
     return new SecureRandom().nextLong();
  }
}



> -----Ursprüngliche Nachricht-----
> Von: Anton [mailto:[email protected]]
> Gesendet: Samstag, 28. Mai 2016 11:34
> An: [email protected]
> Betreff: Random delay
> 
> Hello
> 
> It seems the delay is fixed, when the route starts up.
> 
> How then, is it possible to have a random delay?
> 
> Thanks

Reply via email to