Update Javadoc for CronTriggerFactoryBean.setMisfireInstructionName()

org.quartz.Trigger#MISFIRE_INSTRUCTION_IGNORE_MISFIRE_POLICY is also
supported.
This commit is contained in:
Sam Brannen 2023-07-16 14:05:24 +02:00
parent 544f594592
commit 9283fd2162
1 changed files with 8 additions and 6 deletions

View File

@ -1,5 +1,5 @@
/*
* Copyright 2002-2018 the original author or authors.
* Copyright 2002-2023 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -196,19 +196,21 @@ public class CronTriggerFactoryBean implements FactoryBean<CronTrigger>, BeanNam
}
/**
* Specify a misfire instruction for this trigger.
* Specify the misfire instruction for this trigger.
*/
public void setMisfireInstruction(int misfireInstruction) {
this.misfireInstruction = misfireInstruction;
}
/**
* Set the misfire instruction via the name of the corresponding
* constant in the {@link org.quartz.CronTrigger} class.
* Default is {@code MISFIRE_INSTRUCTION_SMART_POLICY}.
* Set the misfire instruction for this trigger via the name of the corresponding
* constant in the {@link org.quartz.Trigger} and {@link org.quartz.CronTrigger}
* classes.
* <p>Default is {@code MISFIRE_INSTRUCTION_SMART_POLICY}.
* @see org.quartz.Trigger#MISFIRE_INSTRUCTION_SMART_POLICY
* @see org.quartz.Trigger#MISFIRE_INSTRUCTION_IGNORE_MISFIRE_POLICY
* @see org.quartz.CronTrigger#MISFIRE_INSTRUCTION_FIRE_ONCE_NOW
* @see org.quartz.CronTrigger#MISFIRE_INSTRUCTION_DO_NOTHING
* @see org.quartz.Trigger#MISFIRE_INSTRUCTION_SMART_POLICY
*/
public void setMisfireInstructionName(String constantName) {
this.misfireInstruction = constants.asNumber(constantName).intValue();