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

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

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

Scheduler.resumeTriggers介绍

[英]Resume (un-pause) all of the Triggers in matching groups.

If any Trigger missed one or more fire-times, then the Trigger's misfire instruction will be applied.
[中]恢复(取消暂停)匹配组中的所有Triggers
如果任何Trigger错过一次或多次点火,则Trigger的失火指令将被应用。

代码示例

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

public void resumeTriggers(GroupMatcher<TriggerKey> groupMatcher) {
  try {
    scheduler.resumeTriggers(groupMatcher);
  } catch (SchedulerException e) {
    throw new QuartzRuntimeException(e);
  }
}

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

public void resumeTriggers(final GroupMatcher<TriggerKey> matcher) {
  try {
    scheduler.resumeTriggers(matcher);
  } catch (final SchedulerException e) {
    throw new QuartzSchedulerException(e);
  }
}

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

@Override
public void resumeTriggers(GroupMatcher<TriggerKey> matcher) throws SchedulerException {
  getScheduler().resumeTriggers(matcher);
}

代码示例来源:origin: bonitasoft/bonita-engine

@Override
public void resumeJobs(final String groupName) throws SSchedulerException {
  final GroupMatcher<TriggerKey> groupEquals = GroupMatcher.triggerGroupEquals(groupName);
  try {
    scheduler.resumeTriggers(groupEquals);
  } catch (final SchedulerException e) {
    throw new SSchedulerException("Unable to put jobs of tenant " + groupName + " in pause", e);
  }
}

代码示例来源:origin: bonitasoft/bonita-engine

@Override
public void resumeJobs(final String groupName) throws SSchedulerException {
  final GroupMatcher<TriggerKey> groupEquals = GroupMatcher.triggerGroupEquals(groupName);
  try {
    scheduler.resumeTriggers(groupEquals);
  } catch (final SchedulerException e) {
    throw new SSchedulerException("Unable to put jobs of tenant " + groupName + " in pause", e);
  }
}

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

@Override
public void resumeTriggers(GroupMatcher<TriggerKey> matcher) throws QuartzException {
  try {
    delegate.resumeTriggers(matcher);
  } catch (SchedulerException e) {
    Logger.error(e.getMessage());
    throw new QuartzException(e);
  }
}

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

@Override
public void resumeTriggers(GroupMatcher<TriggerKey> matcher) throws QuartzException {
  try {
    delegate.resumeTriggers(matcher);
  } catch (SchedulerException e) {
    Logger.error(e.getMessage());
    throw new QuartzException(e);
  }
}

相关文章