OnJava8-Examples/net/mindview/util/DaemonThreadPoolExecutor.java

14 lines
390 B
Java
Raw Normal View History

2015-04-20 15:36:01 -07:00
//: net/mindview/util/DaemonThreadPoolExecutor.java
2015-05-29 14:18:51 -07:00
// <20>2015 MindView LLC: see Copyright.txt
2015-04-20 15:36:01 -07:00
package net.mindview.util;
import java.util.concurrent.*;
public class DaemonThreadPoolExecutor
extends ThreadPoolExecutor {
public DaemonThreadPoolExecutor() {
super(0, Integer.MAX_VALUE, 60L, TimeUnit.SECONDS,
2015-05-05 11:20:13 -07:00
new SynchronousQueue<>(),
2015-04-20 15:36:01 -07:00
new DaemonThreadFactory());
}
} ///:~