Class DoneMsg


  • public final class DoneMsg
    extends InitializationMsg
    This message is part of the replication protocol. This message is sent by a server to one or several other servers after the last entry sent in the context of a total update and signals to the server that receives it that the export is now finished.
    • Constructor Detail

      • DoneMsg

        public DoneMsg​(ReplicaId sender,
                       ReplicaId destination)
        Creates a message.
        Parameters:
        sender - The sender server of this message.
        destination - The server or servers targeted by this message.
    • Method Detail

      • getBytes

        public byte[] getBytes​(short protocolVersion)
        Description copied from class: ReplicationMsg
        Serializes the PDU using the provided replication protocol version. WARNING: should be overwritten by a PDU (sub class) we want to support older protocol version serialization for.
        Specified by:
        getBytes in class ReplicationMsg
        Parameters:
        protocolVersion - The protocol version to use for serialization. The version should normally be older than the current one.
        Returns:
        The encoded PDU, or null if the message isn't supported in that protocol version.