[
https://issues.apache.org/jira/browse/CAMEL-1962?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16514242#comment-16514242
]
Andrew Doumaux commented on CAMEL-1962:
---------------------------------------
Created new feature request for "Offer/Timeout" suggestion from [~davsclaus] in
CAMEL-12584
> Seda producer throws if queue is full
> -------------------------------------
>
> Key: CAMEL-1962
> URL: https://issues.apache.org/jira/browse/CAMEL-1962
> Project: Camel
> Issue Type: Bug
> Components: camel-core
> Affects Versions: 1.6.1, 2.0.0
> Environment: Java SE 5
> Reporter: Adam Brewster
> Priority: Major
> Attachments: 0001-seda-don-t-throw-IllegalStateException.patch
>
> Original Estimate: 0.5h
> Remaining Estimate: 0.5h
>
> The LinkedBlockingQueue used by the SedaComponent supports a couple of
> different ways to insert an object into the queue.
> - Collection.add adds the element immediately if possible or throws an
> IllegalStateException if the queue is full
> - BlockingQueue.offer adds the element immediately if possible or returns
> false if the queue is full
> - BlockingQueue.put waits if necessary and adds the element when space is
> available
> SedaProducer extends CollectionProducer which holds a reference to a
> collection, so it has to use the add method specified by the Collection
> interface.
> I suggest that either of the BlockingQueue methods would be superior.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)