Package net.sinyax.sofa
Interface ReplicatorDbAdapter
- All Known Implementing Classes:
LocalDatabase,RemoteHttpDatabase
public interface ReplicatorDbAdapter
-
Method Summary
Modifier and TypeMethodDescriptionbulkSaveDocuments(List<Document> docs, boolean newEdits) getChanges(String since, int limit) getDocument(String docId, boolean revs) getDocument(String docId, boolean revs, List<String> revisions) getLocalDocument(String docId) getRevisionDiff(Map<String, List<String>> revs) info()
-
Method Details
-
identifier
String identifier() -
info
CompletableFuture<DatabaseInfo> info() -
getChanges
-
getDocument
-
getDocument
CompletableFuture<List<DocRevResponse>> getDocument(String docId, boolean revs, List<String> revisions) -
bulkSaveDocuments
-
getLocalDocument
-
saveLocalDocument
-
getRevisionDiff
-