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 (Created) (JIRA)" <ji...@apache.org> on 2012/03/10 10:18:56 UTC
[jira] [Created] (CAMEL-5074) Add option to newSingleThreadExecutor
to allow thread pool to shrink to 0 in case task is not needed to run all
the time
Add option to newSingleThreadExecutor to allow thread pool to shrink to 0 in case task is not needed to run all the time
------------------------------------------------------------------------------------------------------------------------
Key: CAMEL-5074
URL: https://issues.apache.org/jira/browse/CAMEL-5074
Project: Camel
Issue Type: Improvement
Components: camel-core
Reporter: Claus Ibsen
Assignee: Claus Ibsen
Priority: Minor
Fix For: 2.10.0
Sometimes you want to use a async task to run some task, and for that the thread pools can be used.
However there may not be a need for the thread pool to keep 1 thread in the pool. So we should allow the pool to shrink to 0.
--
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
[jira] [Resolved] (CAMEL-5074) Add option to
newSingleThreadExecutor to allow thread pool to shrink to 0 in case task is
not needed to run all the time
Posted by "Claus Ibsen (Resolved) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-5074?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen resolved CAMEL-5074.
--------------------------------
Resolution: Not A Problem
We can just use newThreadPool(source, name, 0, 1) instead. That should be fine.
> Add option to newSingleThreadExecutor to allow thread pool to shrink to 0 in case task is not needed to run all the time
> ------------------------------------------------------------------------------------------------------------------------
>
> Key: CAMEL-5074
> URL: https://issues.apache.org/jira/browse/CAMEL-5074
> Project: Camel
> Issue Type: Improvement
> Components: camel-core
> Reporter: Claus Ibsen
> Assignee: Claus Ibsen
> Priority: Minor
> Fix For: 2.10.0
>
>
> Sometimes you want to use a async task to run some task, and for that the thread pools can be used.
> However there may not be a need for the thread pool to keep 1 thread in the pool. So we should allow the pool to shrink to 0.
--
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