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 F1C00200CAD for ; Wed, 28 Jun 2017 17:33:17 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id F0911160BF7; 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 4134B160BE8 for ; Wed, 28 Jun 2017 17:33:17 +0200 (CEST) Received: (qmail 6694 invoked by uid 500); 28 Jun 2017 15:33:16 -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 6681 invoked by uid 99); 28 Jun 2017 15:33:16 -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:16 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 958ADE381C; 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:16 -0000 Message-Id: In-Reply-To: References: X-Mailer: ASF-Git Admin Mailer Subject: [2/2] camel git commit: CAMEL-11461 Resolve concurrentConsumers and limitConcurrentConsumers from the registry. archived-at: Wed, 28 Jun 2017 15:33:18 -0000 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/e180eeee Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/e180eeee Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/e180eeee Branch: refs/heads/camel-2.19.x Commit: e180eeeee5e4b907968dd7e84590bdae16670700 Parents: fc3647c Author: Ion Savin Authored: Tue Jun 27 10:40:36 2017 +0300 Committer: Claus Ibsen Committed: Wed Jun 28 17:33:07 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/e180eeee/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);