T
- The type of the Document that this data store can handle.S
- The type of Edit
s that this synchronizer can handlepublic interface ClientDataStore<T,S extends Edit<? extends Diff>> extends DataStore<T,S>
DataStore
implementation is responsible for storing and serving data for a
Differential Synchronization implementation.Modifier and Type | Method and Description |
---|---|
ClientDocument<T> |
getClientDocument(String documentId,
String clientId)
Retrieves the
Document matching the passed-in document documentId. |
void |
saveClientDocument(ClientDocument<T> document)
Saves a client document.
|
getBackupShadowDocument, getEdits, getShadowDocument, removeEdit, removeEdits, saveBackupShadowDocument, saveEdits, saveShadowDocument
void saveClientDocument(ClientDocument<T> document)
document
- the ClientDocument
to save.ClientDocument<T> getClientDocument(String documentId, String clientId)
Document
matching the passed-in document documentId.documentId
- the document identifier of the document.clientId
- the client identifier for which to fetch the document.ClientDocument
the document matching the documentId.Copyright © 2015 JBoss by Red Hat. All Rights Reserved.