Show / Hide Table of Contents

Interface IReplicatorConnection

This interface is the counterpart to IMessageEndpointConnection. While IMessageEndpointConnection communicates outgoing events, this interface is for signaling incoming events. A typical setup is to have incoming data via application logic, which then calls to the methods of this interface, which is implemented and provided by Couchbase Lite.

Namespace: Couchbase.Lite.P2P
Assembly: Couchbase.Lite.dll
Syntax
public interface IReplicatorConnection
Remarks

NOTE: This is an enterprise edition feature

Methods

| Improve this Doc View Source

Close(MessagingException)

Signals that the replication should stop and close the connection

Declaration
void Close(MessagingException error)
Parameters
Type Name Description
MessagingException error

The error that occurred, if any. This is used to determine retry strategy.

| Improve this Doc View Source

Receive(Message)

Receive the given message for processing by Couchbase Lite

Declaration
void Receive(Message message)
Parameters
Type Name Description
Message message

A message object containing the data received from the remote endpoint

  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX