overflowdb.util.NamedThreadFactory Maven / Gradle / Ivy
package overflowdb.util;
import java.util.concurrent.ThreadFactory;
public class NamedThreadFactory implements ThreadFactory {
private final String threadName;
public NamedThreadFactory(String threadName) {
this.threadName = threadName;
}
public Thread newThread(Runnable r) {
return new Thread(r, threadName);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy