private final AtomicInteger threadId = new AtomicInteger(0);
public Thread newThread(Runnable runnable) {
Thread t = originalThreadFactory.newThread(runnable);
t.setName(ExecutorThreadModel.this.threadNamePrefix + '-'
+ threadId.incrementAndGet());
t.setDaemon(true);
return t;
}
};
tpe.setThreadFactory(newThreadFactory);