camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (CAMEL-1640) BatchConsumer - Allow consumers to be batch aware
Date Sat, 23 May 2009 16:20:50 GMT

     [ https://issues.apache.org/activemq/browse/CAMEL-1640?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Claus Ibsen resolved CAMEL-1640.
--------------------------------

    Resolution: Fixed

We got them covered now. only atom/rss is not batch consumer as they are working in a special
way with how it uses it split entries to consume the next entry on the next poll. And as such
its not really batch aware.

> BatchConsumer - Allow consumers to be batch aware
> -------------------------------------------------
>
>                 Key: CAMEL-1640
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1640
>             Project: Apache Camel
>          Issue Type: New Feature
>          Components: camel-core
>    Affects Versions: 2.0-M1
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>             Fix For: 2.0.0
>
>
> Most of the consumers can handle batch but they dont decorate the Exchange with this
information.
> Only the file component does this.
> We should expose a {{BatchConsumer}} interface to mark a consumer as being batch capable.
> Then this consumer should be able to round up the exchanges beforehand they are processed.
This allows us to gather the total number of exchanges in the batch.
> And then afterwards loop this list and emit each exchange with information about: current
index out of total.
> This also makes it much easier to support aggregator afterwards as the aggregator will
be able to support BatchConsumer and then know when it has the complete batch aggregated.
> In camel-core its the *file* component that should be batch aware.
> Other components such as: mail, rss, atom, and many others can support this as well.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message