Class PendingMessagesSummary
java.lang.Object
org.springframework.data.redis.connection.stream.PendingMessagesSummary
Value Object summarizing pending messages in a consumer group. It contains the total number and ID range
of pending messages for this consumer group, as well as a collection of total pending messages per consumer.
- Since:
- 2.3
- Author:
- Christoph Strobl
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the range between the smallest and greatest ID among the pending messages.Obtain a map of every consumer in the consumer group with at least one pending message, and the number of pending messages.long
Get the number of total pending messages within the consumer group.Get the greatest ID asString
among the pending messages.Get the greatest ID among the pending messages.Get the smallest ID asString
among the pending messages.Get the smallest ID among the pending messages.toString()
-
Constructor Details
-
PendingMessagesSummary
-
-
Method Details
-
getIdRange
Get the range between the smallest and greatest ID among the pending messages.- Returns:
- never null.
-
minRecordId
Get the smallest ID among the pending messages.- Returns:
- never null.
-
maxRecordId
Get the greatest ID among the pending messages.- Returns:
- never null.
-
minMessageId
Get the smallest ID asString
among the pending messages.- Returns:
- never null.
-
maxMessageId
Get the greatest ID asString
among the pending messages.- Returns:
- never null.
-
getTotalPendingMessages
public long getTotalPendingMessages()Get the number of total pending messages within the consumer group.- Returns:
- never null.
-
getGroupName
- Returns:
- the consumer group name.
-
getPendingMessagesPerConsumer
Obtain a map of every consumer in the consumer group with at least one pending message, and the number of pending messages.- Returns:
- never null.
-
toString
-