Author: buildbot Date: Wed Jul 2 20:18:29 2014 New Revision: 914800 Log: Production update by buildbot for camel
Modified: websites/production/camel/content/cache/main.pageCache websites/production/camel/content/throttler.html Modified: websites/production/camel/content/cache/main.pageCache ============================================================================== Binary files - no diff available. Modified: websites/production/camel/content/throttler.html ============================================================================== --- websites/production/camel/content/throttler.html (original) +++ websites/production/camel/content/throttler.html Wed Jul 2 20:18:29 2014 @@ -87,7 +87,7 @@ <tr> <td valign="top" width="100%"> <div class="wiki-content maincontent"><h3 id="Throttler-Throttler">Throttler</h3><p>The Throttler Pattern allows you to ensure that a specific endpoint does not get overloaded, or that we don't exceed an agreed SLA with some external service.</p><h3 id="Throttler-Options">Options</h3><div class="confluenceTableSmall"> -<table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh"><p> Name </p></th><th colspan="1" rowspan="1" class="confluenceTh"><p> Default Value </p></th><th colspan="1" rowspan="1" class="confluenceTh"><p> Description </p></th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>maximumRequestsPerPeriod</code> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> Maximum number of requests per period to throttle. This option must be provided as a positive number. Notice, in the XML DSL, from <strong>Camel 2.8</strong> onwards this option is configured using an <a shape="rect" href="expression.html" title="Expression">Expression</a> instead of an attribute. </p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>timePeriodMillis</code> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>1000</code> </p></td><td colspan="1" rows pan="1" class="confluenceTd"><p> The time period in milliseconds, in which the throttler will allow at most <code>maximumRequestsPerPeriod</code> number of messages. </p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>asyncDelayed</code> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>false</code> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> <strong>Camel 2.4:</strong> If enabled then any messages which is delayed happens asynchronously using a scheduled thread pool. </p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>executorServiceRef</code> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> <strong>Camel 2.4:</strong> Refers to a custom <a shape="rect" href="threading-model.html" title="Threading Model">Thread Pool</a> to be used if <code>asyncDelay</code> has been enabled. </p></td></tr><tr><td colspan="1" rowspan=" 1" class="confluenceTd"><p> <code>callerRunsWhenRejected</code> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>true</code> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> <strong>Camel 2.4:</strong> Is used if <code>asyncDelayed</code> was enabled. This controls if the caller thread should execute the task if the thread pool rejected the task. </p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>rejectExecution</code> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>false</code> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> <strong>Camel 2.14:</strong> If this option is true, throttler throws the RejectExecutionException when the request rate exceeds the limit. </p></td></tr></tbody></table> +<table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh"><p> Name </p></th><th colspan="1" rowspan="1" class="confluenceTh"><p> Default Value </p></th><th colspan="1" rowspan="1" class="confluenceTh"><p> Description </p></th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>maximumRequestsPerPeriod</code> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> Maximum number of requests per period to throttle. This option must be provided as a positive number. Notice, in the XML DSL, from <strong>Camel 2.8</strong> onwards this option is configured using an <a shape="rect" href="expression.html" title="Expression">Expression</a> instead of an attribute. </p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>timePeriodMillis</code> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>1000</code> </p></td><td colspan="1" rows pan="1" class="confluenceTd"><p> The time period in milliseconds, in which the throttler will allow at most <code>maximumRequestsPerPeriod</code> number of messages. </p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>asyncDelayed</code> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>false</code> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> <strong>Camel 2.4:</strong> If enabled then any messages which is delayed happens asynchronously using a scheduled thread pool. </p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>executorServiceRef</code> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> <strong>Camel 2.4:</strong> Refers to a custom <a shape="rect" href="threading-model.html" title="Threading Model">Thread Pool</a> to be used if <code>asyncDelay</code> has been enabled. </p></td></tr><tr><td colspan="1" rowspan=" 1" class="confluenceTd"><p> <code>callerRunsWhenRejected</code> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>true</code> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> <strong>Camel 2.4:</strong> Is used if <code>asyncDelayed</code> was enabled. This controls if the caller thread should execute the task if the thread pool rejected the task. </p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>rejectExecution</code> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>false</code> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> <strong>Camel 2.14:</strong> If this option is true, throttler throws a ThrottlerRejectExecutionException when the request rate exceeds the limit. </p></td></tr></tbody></table> </div><h3 id="Throttler-Examples">Examples</h3><p><strong>Using the <a shape="rect" href="fluent-builders.html">Fluent Builders</a></strong></p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl"> <script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[ from("seda:a").throttle(3).timePeriodMillis(10000).to("log:result", "mock:result");