Timer ComponentThe timer: component derives from the POJO component to provide timed events. You can only consume events from this endpoint. It produces POJO exchanges that send a Runnable.run() method invocation. URI formattimer:name?options Where options is a query string that can specify any of the following parameters:
UsingTo setup a route that generates an event every 500 seconds: from("timer://foo?fixedRate=true&delay=0&period=500").to("pojo:bar");
Note that the "bar" pojo registered should implement Runnable. See Also |