Class QueueArrivalState

    • Field Detail

      • serialVersionUID

        private static final long serialVersionUID
        define serialVersionUID for interoperability, fix with 5.15.0 value
        See Also:
        Constant Field Values
      • logger

        private static final Logger logger
      • arrivalCount

        private long arrivalCount
      • modified

        private boolean modified
    • Constructor Detail

      • QueueArrivalState

        public QueueArrivalState()
      • QueueArrivalState

        public QueueArrivalState​(String id)
    • Method Detail

      • getAndIncrementArrivalCount

        public long getAndIncrementArrivalCount​(boolean persistent)
      • save

        public void save()
                  throws IOException
        Saves this state if modified.
        Throws:
        IOException - if an error occurs.
      • delete

        public void delete()
      • getEncodableClassId

        public int getEncodableClassId()
        Description copied from interface: Encodable
        Returns a unique class identifier.
        Specified by:
        getEncodableClassId in interface Encodable
        Returns:
        a unique class identifier
      • getEncodedSize

        public int getEncodedSize()
                           throws Exception
        Description copied from interface: Encodable
        Returns the size of the byte array that results from the encoding of this object.
        Specified by:
        getEncodedSize in interface Encodable
        Returns:
        the size of the encoded byte array
        Throws:
        Exception - if an error occurs
      • encode

        public void encode​(Encoder encoder)
                    throws Exception
        Description copied from interface: Encodable
        Encodes the content of this object
        Specified by:
        encode in interface Encodable
        Parameters:
        encoder - the encoder to be used for the encoding
        Throws:
        Exception - if an error occurs
      • decode

        public void decode​(Decoder decoder)
                    throws Exception
        Description copied from interface: Encodable
        Decodes the content of this object
        Specified by:
        decode in interface Encodable
        Parameters:
        decoder - the decoder to be used for the decoding
        Throws:
        Exception - if an error occurs