mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
remove deprecated methods
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
@@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user