Camel
  1. Camel
  2. 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

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Not a Problem
    • Affects Version/s: None
    • Fix Version/s: 2.10.0
    • Component/s: camel-core
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      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.

        Activity

        Hide
        Claus Ibsen added a comment -

        We can just use newThreadPool(source, name, 0, 1) instead. That should be fine.

        Show
        Claus Ibsen added a comment - We can just use newThreadPool(source, name, 0, 1) instead. That should be fine.

          People

          • Assignee:
            Claus Ibsen
            Reporter:
            Claus Ibsen
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development