1 package org.openslx.imagemaster.serverconnection;
3 import java.util.concurrent.ThreadFactory;
4 import java.util.concurrent.atomic.AtomicInteger;
8 private final AtomicInteger
counter =
new AtomicInteger();
9 private final String
name;
19 Thread thread =
new Thread(r, name +
"-" + counter.incrementAndGet());
20 thread.setPriority(priority);
PrioThreadFactory(String name, int priority)
Thread newThread(Runnable r)
final AtomicInteger counter