MessageEndpointListenerConfiguration

public class MessageEndpointListenerConfiguration

ENTERPRISE EDITION ONLY.

Configuration for MessageEndpointListener

  • 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 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)