ReplicatorConfiguration class Null safety Replication
Configuration for a Replicator.
Constructors
-
ReplicatorConfiguration({required Database database, required Endpoint target, ReplicatorType replicatorType = ReplicatorType.pushAndPull, bool continuous = false, Authenticator? authenticator, Uint8List? pinnedServerCertificate, Map<
String, String> ? headers, List<String> ? channels, List<String> ? documentIds, ReplicationFilter? pushFilter, ReplicationFilter? pullFilter, ConflictResolver? conflictResolver, bool enableAutoPurge = true, Duration? heartbeat, int? maxAttempts, Duration? maxAttemptWaitTime}) - Creates a configuration for a Replicator.
- ReplicatorConfiguration.from(ReplicatorConfiguration config)
-
Creates a configuration for a Replicator from another
config
by coping it.
Properties
- authenticator ↔ Authenticator?
-
The Authenticator to authenticate with a remote target.
read / write
-
channels
↔ List<
String> ? -
A set of Sync Gateway channel names to pull from. [...]
read / write
- conflictResolver ↔ ConflictResolver?
-
A custom conflict resolver. [...]
read / write
- continuous ↔ bool
-
The continuous flag indicating whether the replicator should stay active
indefinitely to replicate changed documents.
read / write
- database → Database
-
The local Database to replicate with the replication target.
final
-
documentIds
↔ List<
String> ? -
A set of document IDs to filter by. [...]
read / write
- enableAutoPurge ↔ bool
-
Whether to automatically purge a document when the user looses access to
it, on the server. [...]
read / write
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
-
headers
↔ Map<
String, String> ? -
Extra HTTP headers to send in all requests to the remote target.
read / write
- heartbeat ↔ Duration?
-
The heartbeat interval. [...]
read / write
- maxAttempts ↔ int?
-
The maximum attempts to connect. [...]
read / write
- maxAttemptWaitTime ↔ Duration?
-
Max wait time between attempts. [...]
read / write
- pinnedServerCertificate ↔ Uint8List?
-
The remote target's SSL certificate.
read / write
- pullFilter ↔ ReplicationFilter?
-
Filter for validating whether the Documents can be pulled from the
remote endpoint. [...]
read / write
- pushFilter ↔ ReplicationFilter?
-
Filter for validating whether the Documents can be pushed to the remote
endpoint. [...]
read / write
- replicatorType ↔ ReplicatorType
-
Replicator type indication the direction of the replicator.
read / write
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
- target → Endpoint
-
The replication target to replicate with.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
toString(
) → String -
A string representation of this object. [...]
override
Operators
-
operator ==(
Object other) → bool -
The equality operator. [...]
inherited