13 lines
348 B
Java
13 lines
348 B
Java
// com/mindviewinc/util/DaemonThreadPoolExecutor.java
|
|
package com.mindviewinc.util;
|
|
import java.util.concurrent.*;
|
|
|
|
public class DaemonThreadPoolExecutor
|
|
extends ThreadPoolExecutor {
|
|
public DaemonThreadPoolExecutor() {
|
|
super(0, Integer.MAX_VALUE, 60L, TimeUnit.SECONDS,
|
|
new SynchronousQueue<>(),
|
|
new DaemonThreadFactory());
|
|
}
|
|
}
|