Skip to content

Commit

Permalink
Issue Netflix#421 - maxSleepTimeMs changed to long
Browse files Browse the repository at this point in the history
  • Loading branch information
peterox committed Oct 29, 2013
1 parent 76c6572 commit bc1f203
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@
*/
public class BoundedExponentialBackoff extends ExponentialBackoff {

private final int maxSleepTimeMs;
private final long maxSleepTimeMs;

public BoundedExponentialBackoff(long baseSleepTimeMs, int maxSleepTimeMs, int max) {
public BoundedExponentialBackoff(long baseSleepTimeMs, long maxSleepTimeMs, int max) {
super(baseSleepTimeMs, max);
this.maxSleepTimeMs = maxSleepTimeMs;
}
Expand All @@ -48,7 +48,7 @@ public RetryPolicy duplicate() {
return new BoundedExponentialBackoff(getBaseSleepTimeMs(), maxSleepTimeMs, getMaxAttemptCount());
}

public int getMaxSleepTimeMs() {
public long getMaxSleepTimeMs() {
return maxSleepTimeMs;
}

Expand Down

0 comments on commit bc1f203

Please sign in to comment.