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
hostInfo
command such as Atlas free-tier. - Several changes to the
RetryInfo
model that is a part ofRetryStrategy
:- Renamed
getNumberOfAttempts
togetNumberOfPreviousAttempts
- Added
getAttemptNumber
which is the number of the current attempt onError
is 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 ofonError
that took aBiConsumer<RetryInfo, Throwable>
has been removed (because there’s no need forRetryInfo
when the operation has failed).- Added the
onBeforeRetry
method, which is called before a retry attempt is made. This function takes aBiConsumer<RetryInfo, Throwable>
in which theRetryInfo
instance contains details about the current retry attempt.
- Renamed