Class CommitWorkMessage


  • public class CommitWorkMessage
    extends Message
    This class represents a JSync CommitWork message. Example :
     
     <?xml version='1.0' encoding='UTF-8'?>
     <jsync version='1.0'>
       <commitwork urid='rleader' gcs='c_123456789' lineCount='42' check='false'  />
     </jsync>
     
     
    Since:
    jcms-10.0.8
    • Constructor Detail

      • CommitWorkMessage

        public CommitWorkMessage​(java.lang.String urid,
                                 Stamp gcs,
                                 long lineCount,
                                 boolean check)
        Constructs a new CommitWorkMessage
        Parameters:
        urid - the urid of the sender
        gcs - the GCS
        lineCount - the line count
        check - if true this is a message
      • CommitWorkMessage

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

      • toXml

        public java.lang.String toXml()
        Specified by:
        toXml in class Message
        Returns:
        an XML representation of this message
      • getGcs

        public Stamp getGcs()
      • getLineCount

        public long getLineCount()
      • getCheck

        public boolean getCheck()