Represents a timer endpoint that can generate periodic inbound exchanges triggered by a timer.
Name | Kind | Type | Required | Deprecated | Default Value | Enum Values | Description |
---|---|---|---|---|---|---|---|
timerName | path | java.lang.String | true | false | The name of the timer | ||
time | parameter | java.util.Date | false | A java.util.Date the first event should be generated. If using the URI, the pattern expected is: yyyy-MM-dd HH:mm:ss or yyyy-MM-dd'T'HH:mm:ss. | |||
period | parameter | long | false | 1000 | If greater than 0, generate periodic events every period milliseconds. The default value is 1000. | ||
delay | parameter | long | false | 1000 | The number of milliseconds to wait before the first event is generated. Should not be used in conjunction with the time option. The default value is 1000. | ||
fixedRate | parameter | boolean | false | Events take place at approximately regular intervals, separated by the specified period. | |||
daemon | parameter | boolean | false | true | Specifies whether or not the thread associated with the timer endpoint runs as a daemon. The default value is true. | ||
repeatCount | parameter | long | false | 0 | Specifies a maximum limit of number of fires. So if you set it to 1, the timer will only fire once. If you set it to 5, it will only fire five times. A value of zero or negative means fire forever. | ||
timer | parameter | java.util.Timer | false | To use a custom {@link Timer} | |||
exchangePattern | parameter | org.apache.camel.ExchangePattern | false | InOnly | InOnly RobustInOnly InOut InOptionalOut OutOnly RobustOutOnly OutIn OutOptionalIn |
Sets the default exchange pattern when creating an exchange. | |
synchronous | parameter | boolean | false | false | Sets whether synchronous processing should be strictly used, or Camel is allowed to use asynchronous processing (if supported). @param synchronous true to enforce synchronous processing |
The timer consumer.