Class AckMessage


  • public class AckMessage
    extends Message
    This class represents a JSync AckMessage. Example of AckMessage
     
     <?xml version='1.0' encoding='UTF-8'?>
     <jsync version='1.0'>
       <ack urid='r1' status='200'>
         <stamp urid='r1' time='1234' />
         <stamp urid='r2' time='2345' />
         <stamp urid='r3' time='3456' />
       </ack>
     </jsync>
     
     
    Author:
    Olivier Dedieu
    • Constructor Detail

      • AckMessage

        public AckMessage​(java.lang.String urid,
                          int status,
                          StampTable progressTable)
        Constructs a new AckMessage
        Parameters:
        urid - the urid of the sender (i.e. replica that sends this message)
        status - the status of the message
        progressTable - the progressTable of the sender
        Since:
        jcms-4.1
      • AckMessage

        public AckMessage​(org.jdom.Element root)
        Constructs a new AckMessage from an XML element
        Parameters:
        root - the root element (i.e. the <ack> tag)
        Since:
        jcms-4.1
    • Method Detail

      • getStatus

        public int getStatus()
        Returns:
        the status of this message
        Since:
        jcms-4.1
      • getProgressTable

        public StampTable getProgressTable()
        Returns:
        the progressTable of this message
        Since:
        jcms-4.1
      • toXml

        public java.lang.String toXml()
        Specified by:
        toXml in class Message
        Returns:
        an XML representation of this message
        Since:
        jcms-4.1