Return-Path: X-Original-To: apmail-camel-users-archive@www.apache.org Delivered-To: apmail-camel-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id AD02BE01E for ; Thu, 21 Feb 2013 15:49:24 +0000 (UTC) Received: (qmail 85761 invoked by uid 500); 21 Feb 2013 15:49:24 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 85453 invoked by uid 500); 21 Feb 2013 15:49:23 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Received: (qmail 85412 invoked by uid 99); 21 Feb 2013 15:49:22 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 Feb 2013 15:49:22 +0000 X-ASF-Spam-Status: No, hits=2.8 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of raul@evosent.com designates 209.85.210.181 as permitted sender) Received: from [209.85.210.181] (HELO mail-ia0-f181.google.com) (209.85.210.181) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 Feb 2013 15:49:16 +0000 Received: by mail-ia0-f181.google.com with SMTP id e16so7854725iaa.40 for ; Thu, 21 Feb 2013 07:48:55 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:mime-version:x-originating-ip:in-reply-to:references :from:date:message-id:subject:to:content-type:x-gm-message-state; bh=rtKe2i9W0DPl7HLOSmGlP9WZdHpeOX2PQUmyNNMEDqw=; b=UqRYUVCxbJFvXwCavNdV9F/2LSsvwhHNDLbWgOqkYXWkf5Oz5NRCbr/6J8MoGmRtml J6xCOeA+u8dyL7QZ6cbPzIDChhVfx8P2/BL8TVgLvGOVQA4z+8E47/LGuBbNLjRrZJIZ kphAWAAgBJBEgFsxlmoFPd+SsI5z/1tAtTe+CV3aVhx0/1rkX6gVMjN9tLP9Me+5AgS3 FGoU4eiO5SeozUqISdCzSHPpEM/d5R1uWpnI01oBy1lTMiU9YHp3EjGXjkfTXS0WFrPt 3hVNU7n1WI+b3a9xn4yr+zGszm2WimwW3csPixuMVJjjVDLkFURZ1wjIfsHbGOeDLGih PilA== X-Received: by 10.50.17.201 with SMTP id q9mr12729929igd.107.1361461735186; Thu, 21 Feb 2013 07:48:55 -0800 (PST) MIME-Version: 1.0 Received: by 10.64.68.48 with HTTP; Thu, 21 Feb 2013 07:48:35 -0800 (PST) X-Originating-IP: [2.139.45.199] In-Reply-To: <1361461554715-5727966.post@n5.nabble.com> References: <1361461554715-5727966.post@n5.nabble.com> From: Raul Kripalani Date: Thu, 21 Feb 2013 15:48:35 +0000 Message-ID: Subject: Re: How to drop messages using throttle ? To: "users@camel.apache.org" Content-Type: multipart/alternative; boundary=14dae934094b19e21d04d63e03a7 X-Gm-Message-State: ALoCoQklWCdddXGVwlxNgdEav8PwIFvXIlPNJ+cG/9PXL6YVahoLjoLcpV/FcOZ3GUq3wZYlFyHJ X-Virus-Checked: Checked by ClamAV on apache.org --14dae934094b19e21d04d63e03a7 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Perhaps you're looking for the Sampling Throttler: http://camel.apache.org/sampling.html. Regards, *Ra=FAl 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 On Thu, Feb 21, 2013 at 3:45 PM, lleclerc 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-tp5= 727966.html > Sent from the Camel - Users mailing list archive at Nabble.com. > --14dae934094b19e21d04d63e03a7--