camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject [2/2] camel git commit: CAMEL-11461 Resolve concurrentConsumers and limitConcurrentConsumers from the registry.
Date Wed, 28 Jun 2017 15:33:16 GMT
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 <ion.savin@tora.com>
Authored: Tue Jun 27 10:40:36 2017 +0300
Committer: Claus Ibsen <davsclaus@apache.org>
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<String, Object>
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);


Mime
View raw message