本文整理了Java中org.quartz.Scheduler.deleteJobs()
方法的一些代码示例,展示了Scheduler.deleteJobs()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Scheduler.deleteJobs()
方法的具体详情如下:
包路径:org.quartz.Scheduler
类名称:Scheduler
方法名:deleteJobs
[英]Delete the identified Job
s from the Scheduler - and any associated Trigger
s.
Note that while this bulk operation is likely more efficient than invoking deleteJob(JobKey jobKey)
several times, it may have the adverse affect of holding data locks for a single long duration of time (rather than lots of small durations of time).
[中]
代码示例来源:origin: myschedule/myschedule-quartz-extra
public boolean deleteJobs(List<JobKey> jobKeys) {
try {
return scheduler.deleteJobs(jobKeys);
} catch (SchedulerException e) {
throw new QuartzRuntimeException(e);
}
}
代码示例来源:origin: org.codelibs/elasticsearch-quartz
public boolean deleteJobs(final List<JobKey> jobKeys) {
try {
return scheduler.deleteJobs(jobKeys);
} catch (final SchedulerException e) {
throw new QuartzSchedulerException(e);
}
}
代码示例来源:origin: lvhao/schedule-job
/**
* 删除任务
*
* @param jobKeyList
*/
public boolean remove(List<JobKey> jobKeyList){
try {
return scheduler.deleteJobs(jobKeyList);
} catch (SchedulerException e) {
e.printStackTrace();
}
return false;
}
代码示例来源:origin: OpenWiseSolutions/openhub-framework
@Override
public boolean deleteJobs(List<JobKey> jobKeys) throws SchedulerException {
return getScheduler().deleteJobs(jobKeys);
}
代码示例来源:origin: com.threewks.thundr/thundr-quartz
@Override
public boolean deleteJobs(List<JobKey> jobKeys) throws QuartzException {
try {
return delegate.deleteJobs(jobKeys);
} catch (SchedulerException e) {
Logger.error(e.getMessage());
throw new QuartzException(e);
}
}
代码示例来源:origin: com.threewks.thundr/thundr-contrib-quartz
@Override
public boolean deleteJobs(List<JobKey> jobKeys) throws QuartzException {
try {
return delegate.deleteJobs(jobKeys);
} catch (SchedulerException e) {
Logger.error(e.getMessage());
throw new QuartzException(e);
}
}
代码示例来源:origin: org.nuxeo.ecm.core/nuxeo-core-event
Set<JobKey> jobs = scheduler.getJobKeys(matcher);
try {
scheduler.deleteJobs(new ArrayList<>(jobs)); // raise a lock error in case of concurrencies
for (Schedule each : registry.getSchedules()) {
registerSchedule(each);
内容来源于网络,如有侵权,请联系作者删除!