MessageEndpointConnection

ENTERPRISE EDITION API

The interface implemented by the application using a custom transportation method to exchange replication data between peers.

Functions

Link copied to clipboard
abstract fun close(error: Exception?, completion: MessagingCloseCompletion)

Called to close the remote connection with the other peer when the replicator stops or when the MessageEndpointListener closes the connection. When the remote connection is closed, call the completion block to acknowledge the completion.

Link copied to clipboard
abstract fun open(connection: ReplicatorConnection, completion: MessagingCompletion)

Called to open a remote connection to the other peer when the replicator starts or when the MessageEndpointListener accepts the connection. When the remote connection is established, call the completion block to acknowledge the completion.

Link copied to clipboard
abstract fun send(message: Message, completion: MessagingCompletion)

Called to send the replication data to the other peer. When the replication data is sent, call the completion block to acknowledge the completion.