org.quartz.Scheduler.unscheduleJobs()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(2.6k)|赞(0)|评价(0)|浏览(220)

本文整理了Java中org.quartz.Scheduler.unscheduleJobs()方法的一些代码示例,展示了Scheduler.unscheduleJobs()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Scheduler.unscheduleJobs()方法的具体详情如下:
包路径:org.quartz.Scheduler
类名称:Scheduler
方法名:unscheduleJobs

Scheduler.unscheduleJobs介绍

[英]Remove all of the indicated Triggers from the scheduler.

If the related job does not have any other triggers, and the job is not durable, then the job will also be deleted.

Note that while this bulk operation is likely more efficient than invoking unscheduleJob(TriggerKey triggerKey) 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).
[中]从计划程序中删除所有指示的Triggers。
如果相关作业没有任何其他触发器,且该作业不持久,则该作业也将被删除。
请注意,虽然此批量操作可能比多次调用unscheduleJob(TriggerKey triggerKey)更有效,但它可能会产生负面影响,即在一个较长的时间段内(而不是大量的小时间段)保持数据锁。

代码示例

代码示例来源:origin: OpenWiseSolutions/openhub-framework

@Override
public boolean unscheduleJobs(List<TriggerKey> triggerKeys) throws SchedulerException {
  return getScheduler().unscheduleJobs(triggerKeys);
}

代码示例来源:origin: myschedule/myschedule-quartz-extra

public boolean unscheduleJobs(List<TriggerKey> triggerKeys) {
  try {
    return scheduler.unscheduleJobs(triggerKeys);
  } catch (SchedulerException e) {
    throw new QuartzRuntimeException(e);
  }
}

代码示例来源:origin: org.codelibs/elasticsearch-quartz

public boolean unscheduleJobs(final List<TriggerKey> triggerKeys) {
  try {
    return scheduler.unscheduleJobs(triggerKeys);
  } catch (final SchedulerException e) {
    throw new QuartzSchedulerException(e);
  }
}

代码示例来源:origin: org.alfresco/alfresco-repository

@Override
  public void destroy() throws Exception
  {
    getScheduler().unscheduleJobs(triggerKeys);
  }
}

代码示例来源:origin: Alfresco/alfresco-repository

@Override
  public void destroy() throws Exception
  {
    getScheduler().unscheduleJobs(triggerKeys);
  }
}

代码示例来源:origin: com.threewks.thundr/thundr-contrib-quartz

@Override
public boolean unscheduleJobs(List<TriggerKey> triggerKeys) throws QuartzException {
  try {
    return delegate.unscheduleJobs(triggerKeys);
  } catch (SchedulerException e) {
    Logger.error(e.getMessage());
    throw new QuartzException(e);
  }
}

代码示例来源:origin: com.threewks.thundr/thundr-quartz

@Override
public boolean unscheduleJobs(List<TriggerKey> triggerKeys) throws QuartzException {
  try {
    return delegate.unscheduleJobs(triggerKeys);
  } catch (SchedulerException e) {
    Logger.error(e.getMessage());
    throw new QuartzException(e);
  }
}

代码示例来源:origin: org.commonjava.aprox/aprox-core

if ( name == ANY )
  scheduler.unscheduleJobs( new ArrayList<TriggerKey>( keys ) );
  unscheduled = keys;

代码示例来源:origin: org.apache.deltaspike.modules/deltaspike-scheduler-module-impl

this.scheduler.unscheduleJobs(Arrays.asList(trigger.getKey()));

相关文章