Name
Throttle — Controls the rate at which messages are passed to the next node in the route
Usage
The throttle pattern controls the flow of messages from one step in the route to the next.
The throttle pattern can appear anywhere in the body of a route.
Properties
Table 4.12 describes the properties you can specify using the properties editor.
Table 4.12. Throttle Properties
Name | Description |
---|---|
Caller Runs When Rejected | Specifies that tasks rejected by the thread pool are executed by the calling thread. |
Async Delayed | Specifies that processing tasks will be scheduled for processing at a later time. |
Time Period Millis | Specifies the time period, in milliseconds, used by the throttler. |
Maximum Requests Per Period | Specifies the number of messages per time period that are allowed through the throttler. |
Executor Service Ref | Specifies a reference for looking up the
executorService to use for
thread pool management. |
Inherit Error Handler | Specifies if the node should use the error handler configured for the route. |
Id | Specifies a unique identifier for the endpoint. The Id can be used to refer to the endpoint in the Apache Camel configuration file. |
Description | Specifies a text description of the bean. The description is included in the generated XML file. |