MessageEndpointListenerConfiguration

expect constructor(collections: Set<Collection>, protocolType: ProtocolType)(source)

Create a MessageEndpointListenerConfiguration with the passed protocol type, for the passed Collections The passed set must contain at least one collection and all of the collections it contains must belong to the same scope and the same database, otherwise an InvalidArgumentException will be thrown. If one of the specified collections is deleted during replication, connected clients will be closed with an error.

Parameters

collections

the collections to which the listener is attached

protocolType

protocol type


expect constructor(database: Database, protocolType: ProtocolType)(source)

Deprecated

Use MessageEndpointListener(Collection, ProtocolType)

Replace with

MessageEndpointListener(setOf(database.defaultCollection), protocolType)

The database to which the listener is attached

Parameters

database

to which the listener is attached

protocolType

protocol type

actual constructor(collections: Set<Collection>, protocolType: ProtocolType)(source)

actual constructor(database: Database, protocolType: ProtocolType)(source)

Deprecated

Use MessageEndpointListener(Collection, ProtocolType)

Replace with

MessageEndpointListener(setOf(database.defaultCollection), protocolType)