Click or drag to resize

Replication Class

A Couchbase Lite pull or push Replication between a local and a remote Database.
Inheritance Hierarchy
SystemObject
  Couchbase.LiteReplication

Namespace:  Couchbase.Lite
Assembly:  Couchbase.Lite (in Couchbase.Lite.dll) Version: 1.4.1-b107
Syntax
C#
public abstract class Replication

The Replication type exposes the following members.

Properties
  NameDescription
Public propertyActiveTaskInfo
Gets the active task info for thie replication
Public propertyAuthenticator
Gets or sets the authenticator.
Public propertyChangesCount
If the Replication is active, gets the number of changes to be processed, otherwise 0.
Public propertyChannels
Gets or sets the list of Sync Gateway channel names to filter by for pull Replication.
Public propertyCompletedChangesCount
If the Replication is active, gets the number of completed changes that have been processed, otherwise 0.
Public propertyContinuous
Gets or sets whether the Replication operates continuously, replicating changes as the source Database is modified.
Public propertyCreateTarget
Gets or sets whether the target Database should be created if it doesn't already exist. This only has an effect if the target supports it.
Public propertyDocIds
Gets or sets the ids of the Documents to replicate.
Public propertyFilter
Gets or sets the name of an optional filter function to run on the source Database. Only documents for which the function returns true are replicated.
Public propertyFilterParams
Gets or sets the parameters to pass to the filter function.
Public propertyHeaders
Gets or sets the extra HTTP headers to send in Replication requests to the remote Database.
Public propertyIsPull
Gets whether the Replication pulls from, as opposed to pushes to, the target.
Public propertyIsRunning
Gets whether the Replication is running. Continuous Replications never actually stop, instead they go idle waiting for new data to appear.
Public propertyLastError
Gets the last error, if any, that occurred since the Replication was started.
Public propertyLocalDatabase
Gets the local Database being replicated to/from.
Public propertyOptions Obsolete.
Gets or sets custom options on this replication
Public propertyRemoteUrl
Gets the remote URL being replicated to/from.
Public propertyReplicationOptions
Gets or sets the replication options.
Public propertyStatus
Gets the Replication's current status.
Public propertyTransformationFunction
Gets or sets the transformation function used on the properties of the documents being replicated
Public propertyUsername
If applicable, will store the username of the logged in user once they are authenticated
Top
Methods
  NameDescription
Public methodClearAuthenticationStores
Deletes any persistent credentials (passwords, auth tokens...) associated with this replication's Authenticator. Also removes session cookies from the cookie store.
Public methodDeleteCookie
Deletes a cookie specified by name
Public methodGetPendingDocumentIDs
Gets a collection of document IDs that have been scheduled for replication but not yet completed.
Public methodIsDocumentPending
Checks if the specified document is pending replication
Public methodRestart
Restarts the Replication.
Public methodSetCookie
Sets an HTTP cookie for the Replication.
Public methodStart
Starts the Replication.
Public methodStop
Stops the Replication.
Top
Events
  NameDescription
Public eventChanged
Adds or Removed a Database change delegate that will be called whenever the Replication changes.
Top
Fields
  NameDescription
Public fieldStatic memberSYNC_PROTOCOL_VERSION Obsolete.
The protocol version to use when syncing with Sync Gateway. This value is also included in all HTTP requests as the User-Agent version.
Public fieldStatic memberSyncProtocolVersion
The protocol version to use when syncing with Sync Gateway. This value is also included in all HTTP requests as the User-Agent version.
Top
See Also