ServerDocumentCatalog class abstract interface

The document ids a server serves.

CRDTDocumentStorage holds one document and knows nothing about the others, so the list of documents has to come from somewhere else. A catalog answers three questions: which ids exist, add one, remove one. That is what a PersistentServerRegistry needs to answer hasDocument, documentIds and documentCount after a restart.

It is not a storage. A backend brings its own — a Hive box, a table, a directory listing — and only the three questions below are asked of it.

Implementers

Properties

documentIds Future<Set<String>>
Every document id this server knows about.
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

add(String documentId) Future<void>
Remembers documentId.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
remove(String documentId) Future<void>
Forgets documentId.
toString() String
A string representation of this object.
inherited

Operators

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