CollectionConfiguration

expect class CollectionConfiguration(channels: List<String>? = null, documentIDs: List<String>? = null, pullFilter: ReplicationFilter? = null, pushFilter: ReplicationFilter? = null, conflictResolver: ConflictResolver? = null)(source)

The collection configuration that can be configured specifically for the replication.

actual class CollectionConfiguration : DelegatedClass<<Error class: unknown class>> (source)
actual class CollectionConfiguration(var channels: List<String>?, var documentIDs: List<String>?, var pullFilter: ReplicationFilter?, var pushFilter: ReplicationFilter?, var conflictResolver: ConflictResolver?)(source)

Constructors

Link copied to clipboard
expect constructor(channels: List<String>? = null, documentIDs: List<String>? = null, pullFilter: ReplicationFilter? = null, pushFilter: ReplicationFilter? = null, conflictResolver: ConflictResolver? = null)
actual constructor(channels: List<String>?, documentIDs: List<String>?, pullFilter: ReplicationFilter?, pushFilter: ReplicationFilter?, conflictResolver: ConflictResolver?)

Properties

Link copied to clipboard
expect var channels: List<String>?

A collection of Sync Gateway channel names from which to pull Documents. If unset, all accessible channels will be pulled. Default is empty: pull from all accessible channels.

actual var channels: List<String>?
actual var channels: List<String>?
Link copied to clipboard

The conflict resolver.

Link copied to clipboard
expect var documentIDs: List<String>?

A collection of document IDs to filter: if not null, only documents with these IDs will be pushed and/or pulled.

actual var documentIDs: List<String>?
actual var documentIDs: List<String>?
Link copied to clipboard

The filter used to determine whether a document will be pulled from the remote endpoint.

Link copied to clipboard

The filter used to determine whether a document will be pushed to the remote endpoint.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
fun CollectionConfiguration?.newConfig(channels: List<String>? = null, documentIDs: List<String>? = null, pullFilter: ReplicationFilter? = null, pushFilter: ReplicationFilter? = null, conflictResolver: ConflictResolver? = null): CollectionConfiguration

Create a CollectionConfiguration, overriding the receiver's values with the passed parameters:

Link copied to clipboard

Sets a collection of Sync Gateway channel names from which to pull Documents. If unset, all accessible channels will be pulled. Default is empty: pull from all accessible channels.

Link copied to clipboard

Sets the conflict resolver.

Link copied to clipboard

Sets a collection of document IDs to filter by: if given, only documents with these IDs will be pushed and/or pulled.

Link copied to clipboard

Sets a filter object for validating whether the documents can be pulled from the remote endpoint. Only documents for which the object returns true are replicated.

Link copied to clipboard

Sets a filter object for validating whether the documents can be pushed to the remote endpoint.

Link copied to clipboard
open override fun toString(): String