org.quartz.core.QuartzScheduler.pauseJob()方法的使用及代码示例

x33g5p2x  于2022-01-28 转载在 其他  
字(2.0k)|赞(0)|评价(0)|浏览(115)

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

QuartzScheduler.pauseJob介绍

[英]Pause the org.quartz.JobDetail with the given name - by pausing all of its current Triggers.
[中]暂停具有给定名称的org.quartz.JobDetail——暂停所有当前的Triggers。

代码示例

代码示例来源:origin: quartz-scheduler/quartz

/**
 * <p>
 * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>.
 * </p>
 */
public void pauseJob(JobKey jobKey)
  throws SchedulerException {
  sched.pauseJob(jobKey);
}

代码示例来源:origin: quartz-scheduler/quartz

/**
 * <p>
 * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>.
 * </p>
 */
public void pauseJob(JobKey jobKey)
  throws SchedulerException {
  sched.pauseJob(jobKey);
}

代码示例来源:origin: quartz-scheduler/quartz

public void pauseJob(String jobName, String jobGroup) throws Exception {
  try {
    scheduler.pauseJob(jobKey(jobName, jobGroup));
  } catch (Exception e) {
    throw newPlainException(e);
  }
}

代码示例来源:origin: com.opensymphony.quartz/com.springsource.org.quartz

/**
 * <p>
 * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>,
 * passing the <code>SchedulingContext</code> associated with this
 * instance.
 * </p>
 */
public void pauseJob(String jobName, String groupName)
  throws SchedulerException {
  sched.pauseJob(schedCtxt, jobName, groupName);
}

代码示例来源:origin: quartz/quartz-all

/**
 * <p>
 * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>,
 * passing the <code>SchedulingContext</code> associated with this
 * instance.
 * </p>
 */
public void pauseJob(String jobName, String groupName)
  throws SchedulerException {
  sched.pauseJob(schedCtxt, jobName, groupName);
}

代码示例来源:origin: nkcoder/quartz-explained

public void pauseJob(String jobName, String jobGroup) throws Exception {
  try {
    scheduler.pauseJob(jobKey(jobName, jobGroup));
  } catch (Exception e) {
    throw newPlainException(e);
  }
}

相关文章

微信公众号

最新文章

更多

QuartzScheduler类方法