[ https://issues.apache.org/jira/browse/CAMEL-6476?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13690365#comment-13690365 ]
David J. M. Karlsen commented on CAMEL-6476: -------------------------------------------- I guess having a configurable threshold value for when to spool would be the best. And to expose this in the DSL when activating streaming for a context. > StreamCachingStrategy - A better strategy > ----------------------------------------- > > Key: CAMEL-6476 > URL: https://issues.apache.org/jira/browse/CAMEL-6476 > Project: Camel > Issue Type: New Feature > Components: camel-core > Reporter: Claus Ibsen > Assignee: Claus Ibsen > Fix For: 2.12.0 > > > The old stream caching has some flaws such as > - copying the existing stream into an internal buffer/type > - spool to disk by default > - a bit confusing to configure > - wrap based > - not exposed in JMX > - not easy to implement custom strategies > Working on a new strategy that supports > - reusing existing stream if it supports marks > - memory based only by default > - threshold for spooling to disk based on memory usage, and payload sizes > - use the internal camel processor to avoid wrapping > - exposed in JMX with runtime stats > - only enabled if explicit turned on > - log at INFO level on startup if enabled and what settings is in use > - configuring in the DSL with a xxxDefinition to make it stand out in the XML > DSLs -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira