How do I specify time period in a human friendly syntaxPage added by Claus IbsenHow do I specify time period in a human friendly syntaxAvailable as of Camel 2.3 Some of the Camel Components offers options to specify a time period, which must be entered in milli second as unit. This may be unfriendly to read as a human when the value is large such as 45min = 2700000 millis. So in Camel 2.3 you can now configure any endpoint uri parameter using a String syntax, which at runtime will get converted to millis (long type). You can use the following short syntax, which is most common to use:
So for example the Timer endpoint can be configured as follows from("timer:foo?period=45m").to("log:foo");
Change Notification Preferences
View Online
|
Add Comment
|
