MessageEndpointListenerConfiguration

public class MessageEndpointListenerConfiguration

ENTERPRISE EDITION ONLY.

Configuration for MessageEndpointListener

  • The local database.

    Declaration

    Swift

    @available(*, deprecated, message: "Use collection instead.")
    public let database: Database
  • The data transmission protocol type.

    Declaration

    Swift

    public let protocolType: ProtocolType
  • The collections that will be available for replication.

    When the init(database: protocolType:) is used, the property will contain the default collection.

    Declaration

    Swift

    public let collections: [Collection]
  • Init with the database object to make the default collection available for the replication.

    Declaration

    Swift

    @available(*, deprecated, message: "Use init(collection:protocolType:﹚ instead.")
    public init(database: Database, protocolType: ProtocolType)

    Parameters

    database

    The local database.

    protocolType

    The data transmission protocol type.

  • Init with the collections that will be available for replication.

    The specified collections must contain at least one collection, otherwise an Invalid Argument Exception will be thrown.

    All of the collections must belong to the same database, otherwise an Invalid Argument Exception will be thrown.

    If one of the collections is removed during the replication, the listener would be stopped, and the connections to the connected clients would be closed with an error - Need to sync the behavior and error code with SG.

    Declaration

    Swift

    public init(collections: [Collection], protocolType: ProtocolType)