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/9195ef64 Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/9195ef64 Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/9195ef64 Branch: refs/heads/camel-2.12.x Commit: 9195ef64529f7031160570f534fbcc11c8242782 Parents: a67628e Author: Claus Ibsen <davscl...@apache.org> Authored: Thu May 8 07:08:48 2014 +0200 Committer: Claus Ibsen <davscl...@apache.org> Committed: Thu May 8 07:10:21 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/9195ef64/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); }