executorService = routeContext.getCamelContext().getExecutorServiceStrategy()
.newThreadPool(this, name, core, max, keepAlive, tu, maxQueue, rejected, true);
}
ThreadsProcessor thread = new ThreadsProcessor(routeContext.getCamelContext(), executorService);
if (getCallerRunsWhenRejected() == null) {
// should be true by default
thread.setCallerRunsWhenRejected(true);
} else {
thread.setCallerRunsWhenRejected(getCallerRunsWhenRejected());
}
List<Processor> pipe = new ArrayList<Processor>(2);
pipe.add(thread);
pipe.add(createChildProcessor(routeContext, true));