CRDTServerRegistry class abstract

Class managing the CRDT document registry on the server.

Constructors

CRDTServerRegistry()

Properties

documentCount Future<int>
Get the number of documents registered
no setter
documentIds Future<Set<String>>
Get all document IDs
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addDocument(String documentId, {PeerId? author}) Future<void>
Register a document
applyChange(String documentId, Change change) Future<bool>
Apply a change to a document
createSnapshot(String documentId) Future<Snapshot>
Create a snapshot of a document
getDocument(String documentId) Future<CRDTDocument?>
Get a store for an existing document
getLatestSnapshot(String documentId) Future<Snapshot?>
Get the latest snapshot of a document
hasDocument(String documentId) Future<bool>
Check if a document exists
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeDocument(String documentId) Future<void>
Remove a document
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited