Skip to content

Commit

Permalink
Change parameter name to be more consistent.
Browse files Browse the repository at this point in the history
  • Loading branch information
dfdemar committed Aug 14, 2016
1 parent 30730d2 commit 2cc3f91
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/net/jodah/sarge/PlanMaker.java
Original file line number Diff line number Diff line change
Expand Up @@ -128,13 +128,13 @@ public PlanMaker retryOn(Class<? extends Throwable> causeType, int maxRetries,

/**
* Perform a retry when a failure of any of the {@code causeTypes} occurs, retrying up to
* {@code maxRetries} times within the {@code timeRange} with zero wait time between retries.
* {@code maxRetries} times within the {@code retryWindow} with zero wait time between retries.
*
* @throws NullPointerException if {@code causeTypes} is null
*/
public PlanMaker retryOn(Class<? extends Throwable>[] causeTypes, int maxRetries,
Duration timeRange) {
return addDirective(Directive.Retry(maxRetries, timeRange), causeTypes);
Duration retryWindow) {
return addDirective(Directive.Retry(maxRetries, retryWindow), causeTypes);
}

/**
Expand Down

0 comments on commit 2cc3f91

Please sign in to comment.