6

Today, I iterate

public void unschedule(final ScheduledEvent event) throws SchedulerException {
     ...
    scheduler.deleteJob(event.getName(), "my group");
     ...
}

If what i want is to unschedule all jobs, can this be done better (faster)?

4

1 回答 1

15

Scheduler#clear()将删除所有内容,包括触发器和日历

如果那太严重了,那么我认为您的迭代器是唯一的选择

于 2013-04-11T21:22:33.170 回答