All Downloads are FREE. Search and download functionalities are using the official Maven repository.

overflowdb.util.NamedThreadFactory Maven / Gradle / Ivy

There is a newer version: 1.115
Show newest version
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