SyncReplicator class Null safety Replication
A Replicator with a primarily synchronous API.
- Implemented types
Constructors
- SyncReplicator(ReplicatorConfiguration config)
-
Creates a replicator for replicating Documents between a local
SyncDatabase and a target database.
factory
Properties
- config → ReplicatorConfiguration
-
This replicator's configuration.
read-only, inherited
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- isClosed → bool
-
Whether this resource has been closed.
read-only, inherited
-
pendingDocumentIds
→ Set<
String> -
Returns a Set of Document ids, who have revisions pending push. [...]
read-only, override
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
- status → ReplicatorStatus
-
Returns this replicator's status.
read-only, override
Methods
-
addChangeListener(
ReplicatorChangeListener listener) → ListenerToken -
Adds a
listener
to be notified of changes to the status of this replicator. [...]override -
addDocumentReplicationListener(
DocumentReplicationListener listener) → ListenerToken -
Adds a
listener
to be notified of DocumentReplications performed by this replicator. [...]override -
changes(
) → Stream< ReplicatorChange> -
Returns a Stream to be notified of changes to the status of this
replicator. [...]
inherited
-
close(
) → Future< void> -
Closes this resource and frees the resources it uses. [...]
inherited
-
documentReplications(
) → Stream< DocumentReplication> -
Returns a Stream to be notified of
DocumentReplication
s performed by this replicator. [...]inherited -
isDocumentPending(
String documentId) → bool -
Returns whether the Document with the given
documentId
has revisions pending push. [...]override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
removeChangeListener(
ListenerToken token) → void -
Removes a previously added change listener. [...]
override
-
start(
{bool reset = false}) → void -
Starts this replicator with an option to
reset
the local checkpoint of the replicator. [...]override -
stop(
) → void -
Stops this replicator, if running. [...]
override
-
toString(
) → String -
A string representation of this object. [...]
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator. [...]
inherited