camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Raul Kripalani <r...@evosent.com>
Subject Re: How to drop messages using throttle ?
Date Thu, 21 Feb 2013 15:48:35 GMT
Perhaps you're looking for the Sampling Throttler:
http://camel.apache.org/sampling.html.

Regards,

*Raúl Kripalani*
Apache Camel Committer
Enterprise Architect, Program Manager, Open Source Integration specialist
http://about.me/raulkripalani | http://www.linkedin.com/in/raulkripalani
http://blog.raulkr.net | twitter: @raulvk <http://twitter.com/raulvk>

On Thu, Feb 21, 2013 at 3:45 PM, lleclerc <lleclerc@aim-rg.com> wrote:

> Hi,
>
> I am trying to limit the amount of message to 2 per second and drop all
> others.
> (I don't want to delay, only dropping them, the most recent is the needed
> one, but not
> too many)
>
> from("seda:a").throttle(2).timePeriodMillis(1000).to("seda:b")
> .process(new Processor() {...System.out.println("OUT");...);
>
> Thanks you for any hints.
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/How-to-drop-messages-using-throttle-tp5727966.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message