Occurrent 0.16.8 is released with the following changes:
- Upgraded jakarta-api from 1.3.5 to 2.11 (which means that all javax annotations have been replaced by jakarta)
- Fixed a bug in CatchupSubscriptionModel that prevented it from working in MongoDB clusters that doesn’t have access to the
hostInfocommand such as Atlas free-tier. - Several changes to the
RetryInfomodel that is a part ofRetryStrategy:- Renamed
getNumberOfAttemptstogetNumberOfPreviousAttempts - Added
getAttemptNumberwhich is the number of the current attempt onErroris now only called if the end result is an error. I.e. it will only be called at most once, and not for intermediate errors. Because of this, the variant ofonErrorthat took aBiConsumer<RetryInfo, Throwable>has been removed (because there’s no need forRetryInfowhen the operation has failed).- Added the
onBeforeRetrymethod, which is called before a retry attempt is made. This function takes aBiConsumer<RetryInfo, Throwable>in which theRetryInfoinstance contains details about the current retry attempt.
- Renamed