// create async processor
Endpoint endpoint = resolveEndpoint(routeContext);
// TODO: rework to have configured executor service in SendAsyncProcessor being handled in stop/start scenario
SendAsyncProcessor async = new SendAsyncProcessor(endpoint, getPattern(), uow);
executorService = ExecutorServiceHelper.getConfiguredExecutorService(routeContext, "ToAsync", this);
if (executorService != null) {
async.setExecutorService(executorService);
}
if (poolSize != null) {
async.setPoolSize(poolSize);
}
return async;
}