Document
A CRDT-based data type. We can represent the model of the application and edit it even while offline.
A single-threaded, Closeable is used as default. Therefore you need to close the document, when the document is no longer needed. If you provide your own dispatcher, it is up to you to decide close is needed or not. snapshotDispatcher can be set differently from dispatcher, as snapshot operation can be much heavier than other operations.
Types
Properties
Functions
Subscribes to events on the document with the specific targetPath.
Deletes elements that were removed before the given time.
getDocSize returns the size of this document.
getMaxSizePerDocument gets the maximum size of this document.
Returns a new proxy of cloned root.
getSchemaRules gets the schema rules of this document.
getStatus returns the status of this document.
Returns the JsonElement corresponding to the path.
getVersionVector returns the version vector of document
hasLocalChanges returns whether this document has local changes or not.
publish publishes an event to notify observers about changes in this resource.
setMaxSizePerDocument sets the maximum size of this document.
setSchemaRules sets the schema rules of this document.
Executes the given updater to update this document.