IBM / cloudant-java-sdk

Cloudant SDK for Java
Apache License 2.0
22 stars 17 forks source link

feat: changes follower #460

Closed ricellis closed 1 year ago

ricellis commented 1 year ago

PR summary

Add changes follower feature.

PR Checklist

Please make sure that your PR fulfills the following requirements:

PR Type

What is the current behavior?

Users have to call postChanges repeatedly and handle various transient errors or disconnects.

What is the new behavior?

The feature adds a helper to automatically paginate the changes feed and return the changes in a stream. It also suppresses transient exceptions and retries (though this can be disabled).

Does this PR introduce a breaking change?

Other information