Uploaded image for project: 'FUSE Mediation Router'
  1. FUSE Mediation Router
  2. MR-102

The parallel Splitter thread pool parameters should be configurable rather than hard coded

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Done
    • Icon: Major Major
    • 1.5.0.0-fuse
    • 1.4.4.0-fuse
    • None
    • None

      The parallel Splitter thread pool parameters are hard coded by default, see org.apache.camel.model.SplitterType.java:

      ...
      public Processor createProcessor(RouteContext routeContext) throws Exception {
              Processor childProcessor = routeContext.createProcessor(this);
              if (aggregationStrategy == null) {
                  aggregationStrategy = new UseLatestAggregationStrategy();
              }
              if (threadPoolExecutor == null) {
                  threadPoolExecutor = new ThreadPoolExecutor(4, 16, 0L, TimeUnit.MILLISECONDS, new LinkedBlockingQueue());
              }
              return new Splitter(getExpression().createExpression(routeContext), childProcessor, aggregationStrategy,
                      isParallelProcessing(), threadPoolExecutor, streaming);
          }
      ...
      

      It would be nice to make the thread pool configurable rather than hard coded as above.

            janstey@redhat.com Jonathan Anstey
            rhn-support-qluo Joe Luo
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: