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

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

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

Trigger.getFinalFireTime介绍

[英]Returns the last time at which the Trigger will fire, if the Trigger will repeat indefinitely, null will be returned.

Note that the return time may be in the past.
[中]返回上次触发Trigger的时间,如果触发器无限期重复,则返回null。
请注意,返回时间可能在过去。

代码示例

代码示例来源: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: 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: org.seedstack.seed/seed-scheduling-support

SchedulingContextImpl(JobExecutionContext context) {
  taskName = context.getJobDetail().getKey().getName();
  storeDurably = context.getJobDetail().isDurable();
  requestRecovery = context.getJobDetail().requestsRecovery();
  scheduledFireDate = context.getScheduledFireTime();
  currentFireDate = context.getFireTime();
  previousFireDate = context.getPreviousFireTime();
  nextFireDate = context.getNextFireTime();
  taskRuntime = context.getJobRunTime();
  triggerRefireCount = context.getRefireCount();
  triggerEndDate = context.getTrigger().getEndTime();
  triggerFinalFireDate = context.getTrigger().getFinalFireTime();
  triggerName = context.getTrigger().getKey().getName();
  triggerStartDate = context.getTrigger().getStartTime();
  triggerPriority = context.getTrigger().getPriority();
}

代码示例来源: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);
  }
}

相关文章