git.net

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Camel Mail: MaxMessagesPerPoll vs fetchSize


The max is a generic option that batch components inherit. Its
limiting after messages has been downloaded/consumed.
The fetch is a component specific option, eg mail protocol, to limit
on the mail server side.

Favour using fetch when possible, eg component specific options.


On Mon, Jun 11, 2018 at 2:09 PM, Shenavai, Manuel
<manuel.shenavai@xxxxxxx> wrote:
> Hi everyone,
>
>
>
> I got a question regarding the Camel Mail Component parameters
> maxMessagesPerPoll and fetchSize. Reading the documentation, the parameters
> sound quite similar. Both seem to restrict the number of messages processed
> per poll. MaxMessagePerPoll seem to control the amount of messages that are
> downloaded, while fetchSize specifies the number of messages consumed per
> poll.
>
>
>
> For me this sounds very similar. Can someone help to better understand these
> parameters and kindly provide an example when which parameter should to be
> set?
>
>
>
> Thanks in advance.
>
> Best regards,
>
> Manuel



-- 
Claus Ibsen
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2: https://www.manning.com/ibsen2