15 lines
329 B
Plaintext
15 lines
329 B
Plaintext
|
|
package com.jysoft.igwmessage;
|
||
|
|
|
||
|
|
import java.util.concurrent.ExecutorService;
|
||
|
|
import java.util.concurrent.Executors;
|
||
|
|
|
||
|
|
public class ExecutorsUtils {
|
||
|
|
|
||
|
|
private static ExecutorService threadPool = Executors.newCachedThreadPool();
|
||
|
|
|
||
|
|
private ExecutorsUtils(){}
|
||
|
|
public static ExecutorService getInstance(){
|
||
|
|
return threadPool;
|
||
|
|
}
|
||
|
|
}
|