rhuffman / re-retrying

A Java library to allow for the creation of configurable retrying strategies for an arbitrary function call, such as something that communicates with a remote service with flaky uptime.
Apache License 2.0
35 stars 6 forks source link

Attempt.getAttemptNumber can return int instead of long #27

Closed rhuffman closed 6 years ago

rhuffman commented 6 years ago

It makes little sense to have the Retryer retry more than Integer.MAX_VALUE times, and, in fact, the Retryer uses an int variable to iterate. Therefore, the attempt number can be an int.

rhuffman commented 6 years ago

Merged to master