Class UpdateRecord

  • All Implemented Interfaces:
    Comparable<UpdateRecord>

    public final class UpdateRecord
    extends Object
    implements Comparable<UpdateRecord>
    Represents an update message with the base DN of the replication domain it belongs to, with support for easy retrieval of the CSN and the replica ID corresponding to the message.
    • Method Detail

      • newUpdateRecord

        public static UpdateRecord newUpdateRecord​(Dn baseDn,
                                                   UpdateMsg msg)
        Creates a new update record with the provided base DN and message.
        Parameters:
        baseDn - the base DN of the replication domain the message belongs to
        msg - the update message
        Returns:
        a new update record with the provided base DN and message.
      • getBaseDn

        public Dn getBaseDn()
        Returns the base DN of the replication domain the message belongs to.
        Returns:
        the base DN of the replication domain the message belongs to
      • getCsn

        public CSN getCsn()
        Returns the CSN of the message.
        Returns:
        the CSN of the message
      • getReplicaId

        public ReplicaId getReplicaId()
        Returns the replica ID of the replica the message belongs to.
        Returns:
        the replica ID of the replica the message belongs to
      • getMessage

        public UpdateMsg getMessage()
        Returns the update message.
        Returns:
        the update message
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object