Package com.couchbase.lite
Interface ReplicatorConnection
-
public interface ReplicatorConnectionENTERPRISE EDITION API
The connection passed to an application using a custom transportation method, when a MessageEndpointConnection is opened, to represent the replicator's side of the connection.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose(MessagingError error)Tells the replicator to close the current connection.voidreceive(Message message)Tells the replicator to consume the data received from the other peer.
-
-
-
Method Detail
-
close
void close(MessagingError error)
Tells the replicator to close the current connection. The replicator will callMessageEndpointConnection.close(Exception, MessagingCloseCompletion)to acknowledge the closed connection.- Parameters:
error- the error if any
-
receive
void receive(@NonNull Message message)Tells the replicator to consume the data received from the other peer.- Parameters:
message- the message
-
-