.maxPoolSize(getMaxPoolSize())
.keepAliveTime(getKeepAliveTime(), getTimeUnit())
.maxQueueSize(getMaxQueueSize())
.rejectedPolicy(getRejectedPolicy())
.build();
threadPool = manager.newThreadPool(this, name, profile);
shutdownThreadPool = true;
}
ThreadsProcessor thread = new ThreadsProcessor(routeContext.getCamelContext(), threadPool, shutdownThreadPool);
if (getCallerRunsWhenRejected() == null) {