当前位置: 首页>>代码示例>>Java>>正文


Java Trigger.CompletedExecutionInstruction方法代码示例

本文整理汇总了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() : ""));
    }
}
 
开发者ID:quanticc,项目名称:sentry,代码行数:10,代码来源:LoggingTriggerListener.java

示例2: triggeredJobComplete

import org.quartz.Trigger; //导入方法依赖的package包/类
@Override
public void triggeredJobComplete(OperableTrigger trigger, JobDetail jobDetail, Trigger.CompletedExecutionInstruction instruction) {
  realJobStore.triggeredJobComplete(trigger, jobDetail, instruction);
}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:5,代码来源:AbstractTerracottaJobStore.java

示例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());
}
 
开发者ID:taboola,项目名称:taboola-cronyx,代码行数:13,代码来源:QuartzTriggerListenerAdapter.java


注:本文中的org.quartz.Trigger.CompletedExecutionInstruction方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。