camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject [2/4] git commit: CAMEL-7411: EventDrivenPollingConsumer can lose exchanges when the internal queue is full
Date Thu, 08 May 2014 05:11:11 GMT
CAMEL-7411: EventDrivenPollingConsumer can lose exchanges when the internal queue is full


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/06b7d5c8
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/06b7d5c8
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/06b7d5c8

Branch: refs/heads/camel-2.13.x
Commit: 06b7d5c879d93b9d0a8663ce49c0b4e11e256cbb
Parents: b1f3fd2
Author: Claus Ibsen <davsclaus@apache.org>
Authored: Thu May 8 07:08:48 2014 +0200
Committer: Claus Ibsen <davsclaus@apache.org>
Committed: Thu May 8 07:09:16 2014 +0200

----------------------------------------------------------------------
 .../java/org/apache/camel/impl/EventDrivenPollingConsumer.java   | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/06b7d5c8/camel-core/src/main/java/org/apache/camel/impl/EventDrivenPollingConsumer.java
----------------------------------------------------------------------
diff --git a/camel-core/src/main/java/org/apache/camel/impl/EventDrivenPollingConsumer.java
b/camel-core/src/main/java/org/apache/camel/impl/EventDrivenPollingConsumer.java
index 428610e..22efbec 100644
--- a/camel-core/src/main/java/org/apache/camel/impl/EventDrivenPollingConsumer.java
+++ b/camel-core/src/main/java/org/apache/camel/impl/EventDrivenPollingConsumer.java
@@ -18,7 +18,7 @@ package org.apache.camel.impl;
 
 import java.util.concurrent.ArrayBlockingQueue;
 import java.util.concurrent.BlockingQueue;
-import java.util.concurrent.LinkedBlockingDeque;
+import java.util.concurrent.LinkedBlockingQueue;
 import java.util.concurrent.RejectedExecutionException;
 import java.util.concurrent.TimeUnit;
 
@@ -55,7 +55,7 @@ public class EventDrivenPollingConsumer extends PollingConsumerSupport implement
         super(endpoint);
         this.queueCapacity = queueSize;
         if (queueSize <= 0) {
-            this.queue = new LinkedBlockingDeque<Exchange>();
+            this.queue = new LinkedBlockingQueue<Exchange>();
         } else {
             this.queue = new ArrayBlockingQueue<Exchange>(queueSize);
         }


Mime
View raw message