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 3D8C017820 for ; Tue, 27 Jan 2015 01:19:44 +0000 (UTC) Received: (qmail 81170 invoked by uid 500); 27 Jan 2015 01:19:44 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 81119 invoked by uid 500); 27 Jan 2015 01:19:44 -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 81107 invoked by uid 99); 27 Jan 2015 01:19:43 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Jan 2015 01:19:43 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of kranti.parisa@gmail.com designates 209.85.218.54 as permitted sender) Received: from [209.85.218.54] (HELO mail-oi0-f54.google.com) (209.85.218.54) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Jan 2015 01:19:38 +0000 Received: by mail-oi0-f54.google.com with SMTP id v63so10124876oia.13 for ; Mon, 26 Jan 2015 17:19:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=8xl1jz2baPLAxDBjUiHX0Lnbh6VkMCJ7xKF2mha2fxk=; b=gNNTnhNP8KOQ6Y3zdV0B5pQHm+11bhvghyZ1eG9WLx7iFWwxM5iaA/6lreGWqISSLT 1zerH9JI/c36zgpaaSuIRcgnWYS6sp4vnFVDrvhdDoKODLHjrBNvL7oTdmh9eaY2h23K Kf0KLhtbFzlc8nFB6bkUQj2ElzES8Bd5oe06cei4+p4GwUnxJedADlVl9jdCjjDoh47j RPmTTxqsQvVInRYzUQOXNF56QgJZVSWbmG78hcTeuMJuFikAGpfBK1gHlW11pOKaosgR OQyfP10lZ7mdP8bf+kCcQ+0oZjzWl3WgNuBX+h1BUcgtk4ikiJYJ6Wi9tv1c9nC+2AaD YoCQ== X-Received: by 10.202.191.194 with SMTP id p185mr8763565oif.128.1422321557599; Mon, 26 Jan 2015 17:19:17 -0800 (PST) MIME-Version: 1.0 Received: by 10.202.229.200 with HTTP; Mon, 26 Jan 2015 17:18:57 -0800 (PST) From: Kranti Parisa Date: Mon, 26 Jan 2015 17:18:57 -0800 Message-ID: Subject: ServiceStatus isProcessing? To: users Content-Type: multipart/alternative; boundary=001a113d6a52327c2a050d980b4c X-Virus-Checked: Checked by ClamAV on apache.org --001a113d6a52327c2a050d980b4c Content-Type: text/plain; charset=UTF-8 Hi, Is there a way to identify if a given route is currently processing any messages or not? I want to run 2 routes which are independent in terms of the incoming data sources but I want to execute each of them only if the other is not processing anything as they both update the same end point (output) If there an alternative approach than checking the in-flight message count? And I think it would be helpful to add isProcessing flag to the ServiceStatus, thoughts? Thanks, Kranti --001a113d6a52327c2a050d980b4c--