From 11de70ed08274730a5fc818c1ad043d21d410c0b Mon Sep 17 00:00:00 2001 From: Sam Brannen Date: Sun, 16 Jul 2023 14:34:42 +0200 Subject: [PATCH] Update Javadoc for SimpleTriggerFactoryBean.setMisfireInstructionName() org.quartz.Trigger#MISFIRE_INSTRUCTION_IGNORE_MISFIRE_POLICY is also supported. --- .../quartz/SimpleTriggerFactoryBean.java | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/spring-context-support/src/main/java/org/springframework/scheduling/quartz/SimpleTriggerFactoryBean.java b/spring-context-support/src/main/java/org/springframework/scheduling/quartz/SimpleTriggerFactoryBean.java index 3cd25be16d7..05cefd1449c 100644 --- a/spring-context-support/src/main/java/org/springframework/scheduling/quartz/SimpleTriggerFactoryBean.java +++ b/spring-context-support/src/main/java/org/springframework/scheduling/quartz/SimpleTriggerFactoryBean.java @@ -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. @@ -184,22 +184,24 @@ public class SimpleTriggerFactoryBean implements FactoryBean, Bea } /** - * 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.SimpleTrigger} 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.SimpleTrigger} + * classes. + *

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.SimpleTrigger#MISFIRE_INSTRUCTION_FIRE_NOW * @see org.quartz.SimpleTrigger#MISFIRE_INSTRUCTION_RESCHEDULE_NEXT_WITH_EXISTING_COUNT * @see org.quartz.SimpleTrigger#MISFIRE_INSTRUCTION_RESCHEDULE_NEXT_WITH_REMAINING_COUNT * @see org.quartz.SimpleTrigger#MISFIRE_INSTRUCTION_RESCHEDULE_NOW_WITH_EXISTING_REPEAT_COUNT * @see org.quartz.SimpleTrigger#MISFIRE_INSTRUCTION_RESCHEDULE_NOW_WITH_REMAINING_REPEAT_COUNT - * @see org.quartz.Trigger#MISFIRE_INSTRUCTION_SMART_POLICY */ public void setMisfireInstructionName(String constantName) { this.misfireInstruction = constants.asNumber(constantName).intValue();