T - The type of the Document that this data store can store.S - The type of Edits that this data store can storepublic interface DataStore<T,S extends Edit<? extends Diff>>
| Modifier and Type | Method and Description |
|---|---|
BackupShadowDocument<T> |
getBackupShadowDocument(String documentId,
String clientId)
Retrieves the
BackupShadowDocument matching the passed-in document documentId. |
Queue<S> |
getEdits(String documentId,
String clientId)
Retreives the queue of
Edits for the specified document documentId. |
ShadowDocument<T> |
getShadowDocument(String documentId,
String clientId)
Retrieves the
ShadowDocument matching the passed-in document documentId. |
void |
removeEdit(S edit,
String documentId,
String clientId)
Removes the edit from the store.
|
void |
removeEdits(String documentId,
String clientId)
Removes all edits for the specific client and document pair.
|
void |
saveBackupShadowDocument(BackupShadowDocument<T> backupShadow)
Saves a backup shadow document
|
void |
saveEdits(S edit,
String documentId,
String clientId)
Saves an
Edit to the data store. |
void |
saveShadowDocument(ShadowDocument<T> shadowDocument)
Saves a shadow document.
|
void saveShadowDocument(ShadowDocument<T> shadowDocument)
shadowDocument - the ShadowDocument to save.ShadowDocument<T> getShadowDocument(String documentId, String clientId)
ShadowDocument matching the passed-in document documentId.documentId - the document id of the shadow document.clientId - the client for which to retrieve the shadow document.ShadowDocument the shadow document matching the documentId.void saveBackupShadowDocument(BackupShadowDocument<T> backupShadow)
backupShadow - the BackupShadowDocument to save.BackupShadowDocument<T> getBackupShadowDocument(String documentId, String clientId)
BackupShadowDocument matching the passed-in document documentId.documentId - the document identifier of the backup shadow document.clientId - the client identifier for which to fetch the document.BackupShadowDocument the backup shadow document matching the documentId.void saveEdits(S edit, String documentId, String clientId)
Edit to the data store.edit - the edit to be saved.documentId - the document identifier for the editclientId - the client identifier for the editQueue<S> getEdits(String documentId, String clientId)
Edits for the specified document documentId.documentId - the document identifier of the edit.clientId - the client identifier for which to fetch the document.Queue<S> the edits for the document.void removeEdit(S edit, String documentId, String clientId)
edit - the edit to be removed.documentId - the document identifier for the editclientId - the client identifier for the editCopyright © 2015 JBoss by Red Hat. All Rights Reserved.