Class OrderInterceptor.MessageOrder

java.lang.Object
org.apache.catalina.tribes.group.interceptors.OrderInterceptor.MessageOrder
Enclosing class:
OrderInterceptor

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

    • 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 Details

    • 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
    • getNext

      Returns the next message in the order.
      Returns:
      The next message order
    • getCount

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

      Adds a message order to the end of the chain.
      Parameters:
      head - The head of the chain
      add - The message order to add
      Returns:
      The head of the updated chain
    • getMsgNr

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