Sampling Throttler
Available as of Camel 2.1
A sampling throttler allowing you to extract a sample of exchanges from the traffic through a route.
It is configured with a sampling period during which only a single exchange is allowed to pass through. All other exchanges will be stopped.
Will by default use a sample period of 1 seconds.
Samples
You use this EIP with the sample
DSL as show below. These samples also show how you can use the different syntax to configure the sampling period:
SamplingThrottlerTest: e1
And the same example in Spring XML is
samplingThrottler.xml e1
And since it uses a default of 1 second you can omit this configuration in case you also want to use 1 second
samplingThrottlerWithDefault.xml e1
See Also
- Throttler
- Aggregator