remove deprecated methods

This commit is contained in:
Looly
2021-06-16 00:51:20 +08:00
parent 8b85134c4b
commit f9b6110042
59 changed files with 214 additions and 2185 deletions

View File

@@ -72,21 +72,4 @@ public class TaskExecutorManager implements Serializable {
}
return this;
}
/**
* 停止所有TaskExecutor
*
* @return this
* @deprecated 作业执行器只是执行给定的定时任务线程无法强制关闭可通过deamon线程方式关闭之
*/
@Deprecated
public TaskExecutorManager destroy() {
// synchronized (this.executors) {
// for (TaskExecutor taskExecutor : executors) {
// ThreadUtil.interupt(taskExecutor, false);
// }
// }
this.executors.clear();
return this;
}
}

View File

@@ -6,7 +6,7 @@ import java.util.List;
/**
* 作业启动管理器
*
*
* @author looly
*
*/
@@ -16,11 +16,11 @@ public class TaskLauncherManager implements Serializable {
protected Scheduler scheduler;
/** 启动器列表 */
protected final List<TaskLauncher> launchers = new ArrayList<>();
public TaskLauncherManager(Scheduler scheduler) {
this.scheduler = scheduler;
}
/**
* 启动 TaskLauncher
* @param millis 触发事件的毫秒数
@@ -37,7 +37,7 @@ public class TaskLauncherManager implements Serializable {
this.scheduler.threadExecutor.execute(launcher);
return launcher;
}
/**
* 启动器启动完毕,启动完毕后从执行器列表中移除
* @param launcher 启动器 {@link TaskLauncher}
@@ -47,20 +47,4 @@ public class TaskLauncherManager implements Serializable {
launchers.remove(launcher);
}
}
/**
* 停止所有TaskLauncher
* @return this
* @deprecated 作业启动器只是调用定时任务检查无法强制关闭可通过deamon线程方式关闭之
*/
@Deprecated
public TaskLauncherManager destroy() {
// synchronized (this.launchers) {
// for (TaskLauncher taskLauncher : launchers) {
// ThreadUtil.interupt(taskLauncher, false);
// }
// }
this.launchers.clear();
return this;
}
}