return "thread";
}
@Override
public Processor createProcessor(RouteContext routeContext) throws Exception {
ThreadProcessor thread = new ThreadProcessor();
thread.setExecutor(executor);
if (coreSize != null) {
thread.setCoreSize(coreSize);
}
if (daemon != null) {
thread.setDaemon(daemon);
}
if (keepAliveTime != null) {
thread.setKeepAliveTime(keepAliveTime);
}
if (maxSize != null) {
thread.setMaxSize(maxSize);
}
thread.setName(name);
thread.setPriority(priority);
if (stackSize != null) {
thread.setStackSize(stackSize);
}
thread.setTaskQueue(taskQueue);
thread.setThreadGroup(threadGroup);
// TODO: see if we can avoid creating so many nested pipelines
ArrayList<Processor> pipe = new ArrayList<Processor>(2);
pipe.add(thread);
pipe.add(createOutputsProcessor(routeContext, outputs));