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

Hadrian Zbarcea commented on CAMEL-5284:
----------------------------------------

We need to give users some control over when the stream would be closed. I will 
introduce a new option 'autoCloseCount' to specify the number of messages to 
process before closing the stream.

A value of 'autoCloseCount=0' means that the stream is never closed (well, it 
will be when the StreamProducer is stopped). A value of 'autoCloseCount=1' 
means close after every message, which is the current behavior. I am tempted to 
use '0' as the default value. A value of '1', although consistent with the 
current behavior is not what a user would expect. Another higher value just 
seems kinda random.
                
> camel-stream should not close stream after each write
> -----------------------------------------------------
>
>                 Key: CAMEL-5284
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5284
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-stream
>    Affects Versions: 2.8.4
>            Reporter: Hadrian Zbarcea
>            Assignee: Hadrian Zbarcea
>             Fix For: 2.8.6, 2.9.3, 2.10.0
>
>
> The StreamProducer in camel-stream closes the stream after every write, which 
> significantly affects performance.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to