Class PendingMessage

java.lang.Object
io.quarkus.redis.datasource.stream.PendingMessage

public class PendingMessage extends Object
Represents the result of an expended xpending command. In the extended form we no longer see the summary information, instead there is detailed information for each message in the pending entries list. For each message four attributes are returned:
  • The ID of the message.
  • The name of the consumer that fetched the message and has still to acknowledge it. We call it the current owner of the message.
  • The number of milliseconds that elapsed since the last time this message was delivered to this consumer.
  • The number of times this message was delivered.

While this structure is mutable, it is highly recommended to use it as a read-only structure.

  • Constructor Details

    • PendingMessage

      public PendingMessage(String messageId, String consumer, Duration durationSinceLastDelivery, int deliveryCount)
  • Method Details

    • getMessageId

      public String getMessageId()
      Gets the message id.
      Returns:
      the message id;
    • getConsumer

      public String getConsumer()
      Gets the consumer name.
      Returns:
      the consumer name
    • getDurationSinceLastDelivery

      public Duration getDurationSinceLastDelivery()
      Gets the duration since the last delivery attempt.
      Returns:
      the duration
    • getDeliveryCount

      public int getDeliveryCount()
      Gets the number of delivery attempts.
      Returns:
      the number of attempts