You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Jira)" <ji...@apache.org> on 2021/01/29 15:40:00 UTC

[jira] [Commented] (CAMEL-16106) camel-seda - Endpoints with custom queueSize to create queue lazy

    [ https://issues.apache.org/jira/browse/CAMEL-16106?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17274524#comment-17274524 ] 

Claus Ibsen commented on CAMEL-16106:
-------------------------------------

This has to defer creating the seda queues until start phase as during bootstrap we gather all seda endpoints and find out if any custom queue size are in use.

This makes it more intuitive as you can do the example as above. Otherwise you need to set foo?size=5 on all the endpoints.

> camel-seda - Endpoints with custom queueSize to create queue lazy
> -----------------------------------------------------------------
>
>                 Key: CAMEL-16106
>                 URL: https://issues.apache.org/jira/browse/CAMEL-16106
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-core
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>            Priority: Major
>             Fix For: 3.x
>
>
> If you have
> from timer
>   to seda foo
> from seda foo ? queueSize = 5
>   to log foo
> Then due the producer with seda : foo is created first it creates the queue with default size. But since there consumer has set the custom queue size to 5, then we would like the queue to be 5.
> So we should lazy create the queue until all endpoints in routes are created. Then we can find out what the queue size should be



--
This message was sent by Atlassian Jira
(v8.3.4#803005)