Click or drag to resize

Replicator Class

An object that is responsible for the replication of data between two endpoints. The replication can set up to be pull only, push only, or both (i.e. pusher and puller are no longer separate) between a database and a URL or a database and another database on the same filesystem.
Inheritance Hierarchy
SystemObject
  Couchbase.Lite.SyncReplicator

Namespace:  Couchbase.Lite.Sync
Assembly:  Couchbase.Lite (in Couchbase.Lite.dll) Version: 2.0.0-b0520
Syntax
C#
public sealed class Replicator : IDisposable

The Replicator type exposes the following members.

Constructors
  NameDescription
Public methodReplicator
Constructs a replicator based on the given ReplicatorConfiguration
Top
Properties
  NameDescription
Public propertyConfig
Gets the configuration that was used to create this Replicator
Public propertyStatus
Gets the current status of the Replicator
Top
Methods
  NameDescription
Public methodAddChangeListener(EventHandlerReplicatorStatusChangedEventArgs)
Adds a change listener on this replication object (similar to a C# event)
Public methodAddChangeListener(TaskScheduler, EventHandlerReplicatorStatusChangedEventArgs)
Adds a change listener on this replication object (similar to a C# event, but with the ability to specify a TaskScheduler to schedule the handler to run on)
Public methodDispose
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Finalizer
(Overrides ObjectFinalize.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodRemoveChangeListener
Removes a previously added change listener via its ListenerToken
Public methodStart
Starts the replication
Public methodStop
Stops the replication
Public methodToString
Returns a string that represents the current object.
(Overrides ObjectToString.)
Top
See Also