|
|
@@ -39,7 +39,7 @@ public class InitService extends ScheduleTaskService {
|
|
|
|
|
|
public void runService(ArrayList<HashMap<String, Object>> list) {
|
|
|
ScheduledExecutorService service = Executors.newScheduledThreadPool(list.size());
|
|
|
- int starttime = 5;
|
|
|
+ int starttime = 2;
|
|
|
for (HashMap<String, Object> map : list) {
|
|
|
try {
|
|
|
String classname = map.get("classname").toString();
|
|
|
@@ -54,7 +54,7 @@ public class InitService extends ScheduleTaskService {
|
|
|
Constructor<?> cla = clz.getDeclaredConstructor();
|
|
|
Object obj = cla.newInstance();
|
|
|
service.scheduleWithFixedDelay((Runnable) obj, starttime, intervaltime, TimeUnit.SECONDS);
|
|
|
- starttime = starttime + 5;
|
|
|
+ starttime = starttime + 2;
|
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|
|
|
}
|