org.quartz.Trigger.getMisfireInstruction()方法的使用及代码示例

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

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

Trigger.getMisfireInstruction介绍

[英]Get the instruction the Scheduler should be given for handling misfire situations for this Trigger- the concrete Trigger type that you are using will have defined a set of additional MISFIRE_INSTRUCTION_XXX constants that may be set as this property's value.

If not explicitly set, the default value is MISFIRE_INSTRUCTION_SMART_POLICY.
[中]获取Scheduler应给出的指令,以处理此Trigger的失火情况-您正在使用的具体Trigger类型将定义一组额外的MISFIRE_INSTRUCTION_XXX常量,这些常量可以设置为此属性的值。
如果未明确设置,默认值为[$4$]。

代码示例

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

public static CompositeData toCompositeData(Trigger trigger) {
  try {
    return new CompositeDataSupport(COMPOSITE_TYPE, ITEM_NAMES,
        new Object[] {
            trigger.getKey().getName(),
            trigger.getKey().getGroup(),
            trigger.getJobKey().getName(),
            trigger.getJobKey().getGroup(),
            trigger.getDescription(),
            JobDataMapSupport.toTabularData(trigger
                .getJobDataMap()),
            trigger.getCalendarName(),
            ((OperableTrigger)trigger).getFireInstanceId(),
            trigger.getMisfireInstruction(),
            trigger.getPriority(), trigger.getStartTime(),
            trigger.getEndTime(), trigger.getNextFireTime(),
            trigger.getPreviousFireTime(),
            trigger.getFinalFireTime() });
  } catch (OpenDataException e) {
    throw new RuntimeException(e);
  }
}

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

/**
 * <p>
 * Return a simple string representation of this object.
 * </p>
 */
public String toString() {
  return "Trigger '" + getFullName() + "':  triggerClass: '"
      + getClass().getName() + " isVolatile: " + isVolatile()
      + " calendar: '" + getCalendarName() + "' misfireInstruction: "
      + getMisfireInstruction() + " nextFireTime: " + getNextFireTime();
}

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

/**
 * <p>
 * Return a simple string representation of this object.
 * </p>
 */
public String toString() {
  return "Trigger '" + getFullName() + "':  triggerClass: '"
      + getClass().getName() + " isVolatile: " + isVolatile()
      + " calendar: '" + getCalendarName() + "' misfireInstruction: "
      + getMisfireInstruction() + " nextFireTime: " + getNextFireTime();
}

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

ps.setInt(14, trigger.getMisfireInstruction());
ps.setBinaryStream(15, bais, len);
ps.setInt(16, trigger.getPriority());

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

ps.setInt(14, trigger.getMisfireInstruction());
ps.setBinaryStream(15, bais, len);
ps.setInt(16, trigger.getPriority());

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

ps.setInt(12, trigger.getMisfireInstruction());

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

ps.setInt(12, trigger.getMisfireInstruction());

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

ps.setInt(14, trigger.getMisfireInstruction());
setBytes(ps, 15, baos);
ps.setInt(16, trigger.getPriority());

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

ps.setInt(14, trigger.getMisfireInstruction());
setBytes(ps, 15, baos);
ps.setInt(16, trigger.getPriority());

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

ps.setInt(12, trigger.getMisfireInstruction());
ps.setInt(13, trigger.getPriority());

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

ps.setInt(12, trigger.getMisfireInstruction());
ps.setInt(13, trigger.getPriority());

代码示例来源:origin: org.finra.herd/herd-service

trigger.getEndTime(), trigger.getFinalFireTime(), trigger.getJobKey(), trigger.getKey(), trigger.getMisfireInstruction(), trigger.getNextFireTime(),
trigger.getPreviousFireTime(), trigger.getPriority(), trigger.getStartTime()));

代码示例来源:origin: FINRAOS/herd

trigger.getEndTime(), trigger.getFinalFireTime(), trigger.getJobKey(), trigger.getKey(), trigger.getMisfireInstruction(), trigger.getNextFireTime(),
trigger.getPreviousFireTime(), trigger.getPriority(), trigger.getStartTime()));

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

public static CompositeData toCompositeData(Trigger trigger) {
  try {
    return new CompositeDataSupport(COMPOSITE_TYPE, ITEM_NAMES,
        new Object[] {
            trigger.getKey().getName(),
            trigger.getKey().getGroup(),
            trigger.getJobKey().getName(),
            trigger.getJobKey().getGroup(),
            trigger.getDescription(),
            JobDataMapSupport.toTabularData(trigger
                .getJobDataMap()),
            trigger.getCalendarName(),
            ((OperableTrigger)trigger).getFireInstanceId(),
            trigger.getMisfireInstruction(),
            trigger.getPriority(), trigger.getStartTime(),
            trigger.getEndTime(), trigger.getNextFireTime(),
            trigger.getPreviousFireTime(),
            trigger.getFinalFireTime() });
  } catch (OpenDataException e) {
    throw new RuntimeException(e);
  }
}

相关文章