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