T - The data type data that this implementation can handle.S - The type of Edits that this implementation can handle.public class ServerInMemoryDataStore<T,S extends org.jboss.aerogear.sync.Edit<? extends org.jboss.aerogear.sync.Diff>> extends Object implements org.jboss.aerogear.sync.server.ServerDataStore<T,S>
ServerDataStore.
This implementation is mainly intended for testing and example applications.
| Constructor and Description |
|---|
ServerInMemoryDataStore() |
| Modifier and Type | Method and Description |
|---|---|
org.jboss.aerogear.sync.BackupShadowDocument<T> |
getBackupShadowDocument(String documentId,
String clientId) |
org.jboss.aerogear.sync.Document<T> |
getDocument(String documentId) |
Queue<S> |
getEdits(String documentId,
String clientId) |
org.jboss.aerogear.sync.ShadowDocument<T> |
getShadowDocument(String documentId,
String clientId) |
void |
removeEdit(S edit,
String documentId,
String clientId) |
void |
removeEdits(String documentId,
String clientId) |
void |
saveBackupShadowDocument(org.jboss.aerogear.sync.BackupShadowDocument<T> backupShadow) |
boolean |
saveDocument(org.jboss.aerogear.sync.Document<T> document) |
void |
saveEdits(S edit,
String documentId,
String clientId) |
void |
saveShadowDocument(org.jboss.aerogear.sync.ShadowDocument<T> shadowDocument) |
void |
updateDocument(org.jboss.aerogear.sync.Document<T> document) |
public void saveShadowDocument(org.jboss.aerogear.sync.ShadowDocument<T> shadowDocument)
public org.jboss.aerogear.sync.ShadowDocument<T> getShadowDocument(String documentId, String clientId)
public void saveBackupShadowDocument(org.jboss.aerogear.sync.BackupShadowDocument<T> backupShadow)
public org.jboss.aerogear.sync.BackupShadowDocument<T> getBackupShadowDocument(String documentId, String clientId)
public boolean saveDocument(org.jboss.aerogear.sync.Document<T> document)
public void updateDocument(org.jboss.aerogear.sync.Document<T> document)
Copyright © 2015 JBoss by Red Hat. All Rights Reserved.