Interface ReplicatorConnection

  • All Known Implementing Classes:
    MessageSocket

    public interface ReplicatorConnection
    ENTERPRISE EDITION API

    The replicator connection used by the application to tell the replicator to consume the data received from the other peer or to close the connection.

    • Method Detail

      • close

        void close​(MessagingError error)
        Tells the replicator to close the current replicator connection. In return, the replicator will call the MessageEndpointConnection's close(error, completion) 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