可以在任何时刻、任何线程内取消任务。
安全地取消任务而不引发线程取消异常依旧是一个重要的方面。
The ability to cancel tasks, without Thread-Aborts, continues to be an important issue.
然后可以用管理接口查询每个任务的当前状态、运行了多长时间,或者请求取消任务。
You could then use the management interface to query each task for what it is doing and how long it is taking or request that the task be canceled.
应用推荐