You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by "kraythe ." <kr...@gmail.com> on 2013/12/06 02:33:27 UTC

Batch Timeout Question

Been looking all over the docs for this. If I have an aggregator with a
batch timeout of 1000 mills and I am running a batch of 5000 records that
takes 15 minutes, the question is would the batch timeout start after the
first record received and batch records in 1 second intervals or would it
wait for there to be 1 second between the last record received and now in
order to stop.

I guess the question is, is the timeout fixed start -> timeout or a timeout
since last aggregated exchange.

Thanks a bunch..

*Robert Simmons Jr. MSc. - Lead Java Architect @ EA*
*Author of: Hardcore Java (2003) and Maintainable Java (2012)*
*LinkedIn: **http://www.linkedin.com/pub/robert-simmons/40/852/a39
<http://www.linkedin.com/pub/robert-simmons/40/852/a39>*

Re: Batch Timeout Question

Posted by Taariq Levack <ta...@gmail.com>.
I meant to add the link[1] to the docs about those options, perhaps you
were looking at the old aggregator which talks about batch timeout.
[1] http://camel.apache.org/aggregator2.html

Taariq


On Fri, Dec 6, 2013 at 5:34 AM, Taariq Levack <ta...@gmail.com> wrote:

> You can choose which behavior you need, there's completionTimeout and
> completionInterval.
>
> Taariq
>
> > On 06 Dec 2013, at 3:33, "kraythe ." <kr...@gmail.com> wrote:
> >
> > Been looking all over the docs for this. If I have an aggregator with a
> > batch timeout of 1000 mills and I am running a batch of 5000 records that
> > takes 15 minutes, the question is would the batch timeout start after the
> > first record received and batch records in 1 second intervals or would it
> > wait for there to be 1 second between the last record received and now in
> > order to stop.
> >
> > I guess the question is, is the timeout fixed start -> timeout or a
> timeout
> > since last aggregated exchange.
> >
> > Thanks a bunch..
> >
> > *Robert Simmons Jr. MSc. - Lead Java Architect @ EA*
> > *Author of: Hardcore Java (2003) and Maintainable Java (2012)*
> > *LinkedIn: **http://www.linkedin.com/pub/robert-simmons/40/852/a39
> > <http://www.linkedin.com/pub/robert-simmons/40/852/a39>*
>

Re: Batch Timeout Question

Posted by Taariq Levack <ta...@gmail.com>.
You can choose which behavior you need, there's completionTimeout and completionInterval.

Taariq

> On 06 Dec 2013, at 3:33, "kraythe ." <kr...@gmail.com> wrote:
> 
> Been looking all over the docs for this. If I have an aggregator with a
> batch timeout of 1000 mills and I am running a batch of 5000 records that
> takes 15 minutes, the question is would the batch timeout start after the
> first record received and batch records in 1 second intervals or would it
> wait for there to be 1 second between the last record received and now in
> order to stop.
> 
> I guess the question is, is the timeout fixed start -> timeout or a timeout
> since last aggregated exchange.
> 
> Thanks a bunch..
> 
> *Robert Simmons Jr. MSc. - Lead Java Architect @ EA*
> *Author of: Hardcore Java (2003) and Maintainable Java (2012)*
> *LinkedIn: **http://www.linkedin.com/pub/robert-simmons/40/852/a39
> <http://www.linkedin.com/pub/robert-simmons/40/852/a39>*