...
org.apache.camel.impl.ThrottlingInflightRoutePolicy
- a throttling based policy that automatic suspends/resumes route(s) based on metrics from the current in flight exchanges. You can use this to dynamic throttle e.g. a JMS consumer to avoid it consuming too fast.
As of Camel 2.5, Camel also provides an ability to schedule routes to be activated, de-activated, suspended and/or resumed at certain times during the day using a ScheduledRoutePolicy (offered via the camel-quartz component). For more details please check out the link below
ScheduledRoutePolicy
Tip | ||
---|---|---|
| ||
If you want to dynamic suspend/resume routes as the |
...
Option | Default | Description |
---|---|---|
scope | Route | A scope for either |
maxInflightExchanges | 1000 | The maximum threshold when the throttling will start to suspend the route if the current number of inlfight exchanges is higher than this value. |
resumePercentOfMax | 70 | A percentage 0..100 which defines when the throttling should resume again in case it has been suspended. |
loggingLevel | INFO | The logging level used for logging the throttling activity. |
logger | ThrottlingInflightRoutePolicy | The logger category. |
ScheduledRoutePolicy (Simple and Cron based) using camel Quartz
For more details check out the following links
Info | ||
---|---|---|
| ||
The |
...