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.
Constructors
Types
BroadcastOptions are the options to create a new broadcast.
Represents the status of the Document.
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.
Returns the JsonElement corresponding to the path.
getVersionVector returns the version vector of document
setMaxSizePerDocument sets the maximum size of this document.
setSchemaRules sets the schema rules of this document.
Executes the given updater to update this document.