You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now that retrying-again has been officially released (first release is 0.5.0), we can switch kiwi to use it.
Since there were some breaking API changes in retrying-again such as throwing Exception instead of Throwable, this switch will include breaking API changes. As is our policy, we are not yet at 1.0.0 so we reserve the right to change APIs.
The text was updated successfully, but these errors were encountered:
NOTE: The package for retrying-again is the same as the one in kiwi
which (for now) lets us access package-private members. If (when?) we
update to make proper use of the JPMS (module system) this will most
likely break and we'd need to change that somehow.
* Change POM to use org.kiwiproject:retrying-again:0.5.0 and remove
the (now unnecessary) guava exclusion
* Update KiwiRetryer to use retrying-again
- API breaking change: exceptionPredicates are Exception not Throwable
- call now catches InterruptedException
- call no longer catches ExecutionException
- the internal Retryer is no longer generic
- remove (now redundant) warning suppression for Unstable API usage
- fix generic in LoggingRetryListener (is now wildcard)
- fix code in logExceptionAttempt to call attempt.getException()
* Update KiwiRetryerException
- Constructor now accepts Exception not Throwable, and it validates
the type is RetryException or InterruptedException
- Update unwrapKiwiRetryerException to remove handling for
ExecutionException which is no longer thrown by Retryer
- Add some new methods:
isCauseRetryException, isCauseInterruptedException, getLastAttempt,
getNumberOfFailedAttempts, and unwrapAsRetryException
* Update KiwiRetryerPredicates
- all the Predicates are now java.util.Predicate
- the exception Predicates now use Exception, not Throwable
Closes#531Closes#481
Now that retrying-again has been officially released (first release is 0.5.0), we can switch kiwi to use it.
Since there were some breaking API changes in retrying-again such as throwing
Exception
instead ofThrowable
, this switch will include breaking API changes. As is our policy, we are not yet at 1.0.0 so we reserve the right to change APIs.The text was updated successfully, but these errors were encountered: