...
ThrottlingInflightRoutePolicy
...
title | ThrottlingInflightRoutePolicy compared to the [Throttler] EIP |
---|
The ThrottlingInflightRoutePolicy
...
is triggered when an Exchange is complete, which means that it requires at least one Exchange to be complete before it works.
The throttling inflight route policy has the following options:
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. |
Info | ||
---|---|---|
| ||
The |
Configuring policy
You configure the route policy as follows from Java DSL, using the routePolicy
method:
...