Skip to content

Commit 79cf532

Browse files
committed
Merge branch '6.0.x'
2 parents f6b8ee7 + 28e63e9 commit 79cf532

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

spring-context-support/src/main/java/org/springframework/scheduling/quartz/CronTriggerFactoryBean.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public class CronTriggerFactoryBean implements FactoryBean<CronTrigger>, BeanNam
8989

9090
private int priority;
9191

92-
private int misfireInstruction;
92+
private int misfireInstruction = CronTrigger.MISFIRE_INSTRUCTION_SMART_POLICY;
9393

9494
@Nullable
9595
private String description;

spring-context-support/src/main/java/org/springframework/scheduling/quartz/SimpleTriggerFactoryBean.java

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2018 the original author or authors.
2+
* Copyright 2002-2023 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -82,7 +82,7 @@ public class SimpleTriggerFactoryBean implements FactoryBean<SimpleTrigger>, Bea
8282

8383
private int priority;
8484

85-
private int misfireInstruction;
85+
private int misfireInstruction = SimpleTrigger.MISFIRE_INSTRUCTION_SMART_POLICY;
8686

8787
@Nullable
8888
private String description;
@@ -184,22 +184,24 @@ public void setPriority(int priority) {
184184
}
185185

186186
/**
187-
* Specify a misfire instruction for this trigger.
187+
* Specify the misfire instruction for this trigger.
188188
*/
189189
public void setMisfireInstruction(int misfireInstruction) {
190190
this.misfireInstruction = misfireInstruction;
191191
}
192192

193193
/**
194-
* Set the misfire instruction via the name of the corresponding
195-
* constant in the {@link org.quartz.SimpleTrigger} class.
196-
* Default is {@code MISFIRE_INSTRUCTION_SMART_POLICY}.
194+
* Set the misfire instruction for this trigger via the name of the corresponding
195+
* constant in the {@link org.quartz.Trigger} and {@link org.quartz.SimpleTrigger}
196+
* classes.
197+
* <p>Default is {@code MISFIRE_INSTRUCTION_SMART_POLICY}.
198+
* @see org.quartz.Trigger#MISFIRE_INSTRUCTION_SMART_POLICY
199+
* @see org.quartz.Trigger#MISFIRE_INSTRUCTION_IGNORE_MISFIRE_POLICY
197200
* @see org.quartz.SimpleTrigger#MISFIRE_INSTRUCTION_FIRE_NOW
198201
* @see org.quartz.SimpleTrigger#MISFIRE_INSTRUCTION_RESCHEDULE_NEXT_WITH_EXISTING_COUNT
199202
* @see org.quartz.SimpleTrigger#MISFIRE_INSTRUCTION_RESCHEDULE_NEXT_WITH_REMAINING_COUNT
200203
* @see org.quartz.SimpleTrigger#MISFIRE_INSTRUCTION_RESCHEDULE_NOW_WITH_EXISTING_REPEAT_COUNT
201204
* @see org.quartz.SimpleTrigger#MISFIRE_INSTRUCTION_RESCHEDULE_NOW_WITH_REMAINING_REPEAT_COUNT
202-
* @see org.quartz.Trigger#MISFIRE_INSTRUCTION_SMART_POLICY
203205
*/
204206
public void setMisfireInstructionName(String constantName) {
205207
this.misfireInstruction = constants.asNumber(constantName).intValue();

0 commit comments

Comments
 (0)