Orchid: typo

This commit is contained in:
Devrandom
2014-08-27 19:27:12 -07:00
committed by Mike Hearn
parent ddfaebd487
commit 59efe031c4

View File

@@ -51,21 +51,21 @@ public class Threading {
public static ExecutorService newPool(final String name) {
ThreadFactory factory = new ThreadFactoryBuilder()
.setDaemon(true)
.setNameFormat("name-%d").build();
.setNameFormat(name + "-%d").build();
return Executors.newCachedThreadPool(factory);
}
public static ScheduledExecutorService newSingleThreadScheduledPool(final String name) {
ThreadFactory factory = new ThreadFactoryBuilder()
.setDaemon(true)
.setNameFormat("name-%d").build();
.setNameFormat(name + "-%d").build();
return Executors.newSingleThreadScheduledExecutor(factory);
}
public static ScheduledExecutorService newScheduledPool(final String name) {
ThreadFactory factory = new ThreadFactoryBuilder()
.setDaemon(true)
.setNameFormat("name-%d").build();
.setNameFormat(name + "-%d").build();
return Executors.newScheduledThreadPool(1, factory);
}
}