Package com.couchbase.lite
Interface ReplicatorConnection
-
public interface ReplicatorConnection
ENTERPRISE 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 void
close(MessagingError error)
Tells the replicator to close the current connection.void
receive(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
-
-