|
|
@ -21,11 +21,11 @@ public class JobTriggerPoolHelper {
|
|
|
|
// ---------------------- trigger pool ----------------------
|
|
|
|
// ---------------------- trigger pool ----------------------
|
|
|
|
|
|
|
|
|
|
|
|
private ThreadPoolExecutor triggerPool = new ThreadPoolExecutor(
|
|
|
|
private ThreadPoolExecutor triggerPool = new ThreadPoolExecutor(
|
|
|
|
20,
|
|
|
|
50,
|
|
|
|
200,
|
|
|
|
200,
|
|
|
|
60L,
|
|
|
|
30L,
|
|
|
|
TimeUnit.SECONDS,
|
|
|
|
TimeUnit.SECONDS,
|
|
|
|
new LinkedBlockingQueue<Runnable>(100000),
|
|
|
|
new LinkedBlockingQueue<Runnable>(1000),
|
|
|
|
new ThreadPoolExecutor.CallerRunsPolicy());
|
|
|
|
new ThreadPoolExecutor.CallerRunsPolicy());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -49,7 +49,6 @@ public class JobTriggerPoolHelper {
|
|
|
|
private static JobTriggerPoolHelper helper = new JobTriggerPoolHelper();
|
|
|
|
private static JobTriggerPoolHelper helper = new JobTriggerPoolHelper();
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
*
|
|
|
|
|
|
|
|
* @param jobId
|
|
|
|
* @param jobId
|
|
|
|
* @param failRetryCount
|
|
|
|
* @param failRetryCount
|
|
|
|
* >=0: use this param
|
|
|
|
* >=0: use this param
|
|
|
|