Class XPendingSummary

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

public class XPendingSummary extends Object
The result of the xpending command when using the summary form.

When using the summary form of xpending, the command outputs the total number of pending messages for this consumer group, followed by the smallest and greatest ID among the pending messages, and then list every consumer in the consumer group with at least one pending message, and the number of pending messages it has.

  • Constructor Details

    • XPendingSummary

      public XPendingSummary(long pendingCount, String lowestId, String highestId, Map<String,Long> consumers)
  • Method Details

    • getPendingCount

      public long getPendingCount()
      Gets the number of message waiting for acknowledgement
      Returns:
      the number of message not yet acknowledged
    • getLowestId

      public String getLowestId()
      Gets the lowest message id that was not yet acknowledged.
      Returns:
      the lowest message id
    • getHighestId

      public String getHighestId()
      Gets the highest message id that was not yet acknowledged.
      Returns:
      the highest message id
    • getConsumers

      public Map<String,Long> getConsumers()
      Get the list of every consumer in the consumer group with at least one pending message, and the number of pending messages it has.
      Returns:
      the map composed of consumer -> number of message