Skip to content

Commit

Permalink
Merge pull request #1188 from jhouserizer/main
Browse files Browse the repository at this point in the history
Improve some of the javadoc language around repeat count
  • Loading branch information
jhouserizer authored Oct 14, 2024
2 parents f3bbe5a + 5271ad0 commit b0143d3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions quartz/src/main/java/org/quartz/SimpleScheduleBuilder.java
Original file line number Diff line number Diff line change
Expand Up @@ -325,10 +325,10 @@ public SimpleScheduleBuilder withIntervalInHours(int intervalInHours) {
}

/**
* Specify a the number of time the trigger will repeat - total number of
* Specify the number of times the trigger will repeat - the total number of
* firings will be this number + 1.
*
* @param triggerRepeatCount the number of seconds at which the trigger should repeat.
* @param triggerRepeatCount the number of times the trigger should repeat after the initial firing.
* @return the updated SimpleScheduleBuilder
* @see SimpleTrigger#getRepeatCount()
* @see #repeatForever()
Expand Down
9 changes: 5 additions & 4 deletions quartz/src/main/java/org/quartz/SimpleTrigger.java
Original file line number Diff line number Diff line change
Expand Up @@ -138,11 +138,12 @@ public interface SimpleTrigger extends Trigger {
public static final int REPEAT_INDEFINITELY = -1;

/**
* <p>
* Get the number of times the <code>SimpleTrigger</code> should
* repeat, after which it will be automatically deleted.
* </p>
*
* repeat, after the initial firing, after which it will be automatically deleted.
*
* The total number of firings will be this number + 1.
*
* @return the number of times the trigger should repeat after the initial firing.
* @see #REPEAT_INDEFINITELY
*/
public int getRepeatCount();
Expand Down

0 comments on commit b0143d3

Please sign in to comment.