本文整理汇总了Java中org.quartz.Trigger.CompletedExecutionInstruction方法的典型用法代码示例。如果您正苦于以下问题:Java Trigger.CompletedExecutionInstruction方法的具体用法?Java Trigger.CompletedExecutionInstruction怎么用?Java Trigger.CompletedExecutionInstruction使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.quartz.Trigger
的用法示例。
在下文中一共展示了Trigger.CompletedExecutionInstruction方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: triggerComplete
import org.quartz.Trigger; //导入方法依赖的package包/类
public void triggerComplete(Trigger trigger, JobExecutionContext context,
Trigger.CompletedExecutionInstruction triggerInstructionCode) {
if (context.getJobRunTime() > 1000) {
log.info("[{}] Trigger '{}' completed job in {}{}",
context.getJobDetail().getKey(), trigger.getKey().getName(),
humanize(Duration.ofMillis(context.getJobRunTime()), false, true),
(context.getResult() != null ? " with result: " + context.getResult() : ""));
}
}
示例2: triggeredJobComplete
import org.quartz.Trigger; //导入方法依赖的package包/类
@Override
public void triggeredJobComplete(OperableTrigger trigger, JobDetail jobDetail, Trigger.CompletedExecutionInstruction instruction) {
realJobStore.triggeredJobComplete(trigger, jobDetail, instruction);
}
示例3: triggerComplete
import org.quartz.Trigger; //导入方法依赖的package包/类
@Override
public void triggerComplete(Trigger trigger, JobExecutionContext context, Trigger.CompletedExecutionInstruction triggerInstructionCode) {
CronyxExecutionContext cronyxContext = contextRegistry.get(context.getFireInstanceId());
if (cronyxContext == null) {
logger.error("there is no active context registered with the name [%s]", context.getFireInstanceId());
throw new Error("this should never happen as a triggetFired event should always be invoked before triggerComplete");
}
updateCronyxContext(context, cronyxContext);
onEvent(cronyxContext);
contextRegistry.unregister(context.getFireInstanceId());
}