本文整理匯總了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());
}