當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。