Package com.couchbase.lite
Class MessageEndpointListenerConfiguration
java.lang.Object
com.couchbase.lite.MessageEndpointListenerConfiguration
ENTERPRISE EDITION API
Configuration for MessageEndpointListener
-
Constructor Summary
ConstructorsConstructorDescriptionMessageEndpointListenerConfiguration(Set<Collection> collections, ProtocolType protocolType) Create a MessageEndpointListenerConfiguration with the passed protocol type, for the passed Collections The passed set must contain at least one collection and all the collections it contains must belong to the same scope and the same database, otherwise an InvalidArgumentException will be thrown. -
Method Summary
Modifier and TypeMethodDescription
-
Constructor Details
-
MessageEndpointListenerConfiguration
public MessageEndpointListenerConfiguration(@NonNull Set<Collection> collections, @NonNull ProtocolType protocolType) Create a MessageEndpointListenerConfiguration with the passed protocol type, for the passed Collections The passed set must contain at least one collection and all 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 attachedprotocolType- protocol type
-
-
Method Details
-
getCollections
-
getProtocolType
-