Skip to content

Instantly share code, notes, and snippets.

@tomblench
Created March 7, 2018 14:48
Show Gist options
  • Save tomblench/418d3978b379dd65d0283ff6abdf8851 to your computer and use it in GitHub Desktop.
Save tomblench/418d3978b379dd65d0283ff6abdf8851 to your computer and use it in GitHub Desktop.

@mansura-habiba you should use db.replicator() as per the example shown here:

https://static.javadoc.io/com.cloudant/cloudant-client/2.12.0/com/cloudant/client/api/Replicator.html

Note that this call is asynchronous so you will probably want to poll the result if you have any logic which is dependent on the replication completing or erroring.

Sorry for the confusion, we have two similarly named methods for replicating:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment