Class OrderInterceptor.MessageOrder

  • Enclosing class:
    OrderInterceptor

    protected static class OrderInterceptor.MessageOrder
    extends java.lang.Object
    Represents a message in the ordering queue.
    • Constructor Detail

      • MessageOrder

        public MessageOrder​(int msgNr,
                            ChannelMessage msg)
        Constructs a MessageOrder with the given message number and message.
        Parameters:
        msgNr - The message number
        msg - The channel message
    • Method Detail

      • isExpired

        public boolean isExpired​(long expireTime)
        Checks if this message has expired.
        Parameters:
        expireTime - The expiration time in milliseconds
        Returns:
        true if the message has expired
      • getMessage

        public ChannelMessage getMessage()
        Returns the channel message.
        Returns:
        The channel message
      • setMessage

        public void setMessage​(ChannelMessage msg)
        Sets the channel message.
        Parameters:
        msg - The channel message
      • setNext

        public void setNext​(OrderInterceptor.MessageOrder order)
        Sets the next message in the order.
        Parameters:
        order - The next message order
      • getCount

        public int getCount()
        Returns the count of messages in this chain.
        Returns:
        The message count
      • getMsgNr

        public int getMsgNr()
        Returns the message number.
        Returns:
        The message number