Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 6BD73200CAD for ; Wed, 28 Jun 2017 17:33:17 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 6A92A160BFA; Wed, 28 Jun 2017 15:33:17 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id AE7D6160BF7 for ; Wed, 28 Jun 2017 17:33:16 +0200 (CEST) Received: (qmail 6587 invoked by uid 500); 28 Jun 2017 15:33:15 -0000 Mailing-List: contact commits-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list commits@camel.apache.org Received: (qmail 6575 invoked by uid 99); 28 Jun 2017 15:33:15 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Jun 2017 15:33:15 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 9283BDFB0D; Wed, 28 Jun 2017 15:33:15 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: davsclaus@apache.org To: commits@camel.apache.org Date: Wed, 28 Jun 2017 15:33:15 -0000 Message-Id: X-Mailer: ASF-Git Admin Mailer Subject: [1/2] camel git commit: CAMEL-11461 Resolve concurrentConsumers and limitConcurrentConsumers from the registry. archived-at: Wed, 28 Jun 2017 15:33:17 -0000 Repository: camel Updated Branches: refs/heads/camel-2.19.x fc3647c21 -> e180eeeee refs/heads/master e6a7caecc -> 149dd15b8 CAMEL-11461 Resolve concurrentConsumers and limitConcurrentConsumers from the registry. Project: http://git-wip-us.apache.org/repos/asf/camel/repo Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/149dd15b Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/149dd15b Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/149dd15b Branch: refs/heads/master Commit: 149dd15b8c267b3a60e4d6c403d500f84ccf080c Parents: e6a7cae Author: Ion Savin Authored: Tue Jun 27 10:40:36 2017 +0300 Committer: Claus Ibsen Committed: Wed Jun 28 17:32:36 2017 +0200 ---------------------------------------------------------------------- .../main/java/org/apache/camel/component/seda/SedaComponent.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/camel/blob/149dd15b/camel-core/src/main/java/org/apache/camel/component/seda/SedaComponent.java ---------------------------------------------------------------------- diff --git a/camel-core/src/main/java/org/apache/camel/component/seda/SedaComponent.java b/camel-core/src/main/java/org/apache/camel/component/seda/SedaComponent.java index de81076..b968119 100644 --- a/camel-core/src/main/java/org/apache/camel/component/seda/SedaComponent.java +++ b/camel-core/src/main/java/org/apache/camel/component/seda/SedaComponent.java @@ -169,8 +169,8 @@ public class SedaComponent extends UriEndpointComponent { @Override @SuppressWarnings("unchecked") protected Endpoint createEndpoint(String uri, String remaining, Map parameters) throws Exception { - int consumers = getAndRemoveParameter(parameters, "concurrentConsumers", Integer.class, concurrentConsumers); - boolean limitConcurrentConsumers = getAndRemoveParameter(parameters, "limitConcurrentConsumers", Boolean.class, true); + int consumers = getAndRemoveOrResolveReferenceParameter(parameters, "concurrentConsumers", Integer.class, concurrentConsumers); + boolean limitConcurrentConsumers = getAndRemoveOrResolveReferenceParameter(parameters, "limitConcurrentConsumers", Boolean.class, true); if (limitConcurrentConsumers && consumers > maxConcurrentConsumers) { throw new IllegalArgumentException("The limitConcurrentConsumers flag in set to true. ConcurrentConsumers cannot be set at a value greater than " + maxConcurrentConsumers + " was " + consumers);