Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-1962

Seda producer throws if queue is full

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 1.6.1, 2.0.0
    • None
    • camel-core
    • None
    • Java SE 5

    Description

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            adambrewster Adam Brewster
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 0.5h
                0.5h
                Remaining:
                Remaining Estimate - 0.5h
                0.5h
                Logged:
                Time Spent - Not Specified
                Not Specified