Package org.redisson.api
Class PendingResult
java.lang.Object
org.redisson.api.PendingResult
- All Implemented Interfaces:
Serializable
Result object for pending messages request.
- Author:
- Nikita Koksharov
- See Also:
-
Constructor Summary
ConstructorDescriptionPendingResult
(long total, StreamMessageId lowestId, StreamMessageId highestId, Map<String, Long> consumerNames) -
Method Summary
Modifier and TypeMethodDescriptionPending messages amount mapped by consumer nameHighest stream id of pending messagesLowest stream id of pending messageslong
getTotal()
Total amount of pending messages
-
Constructor Details
-
PendingResult
public PendingResult() -
PendingResult
public PendingResult(long total, StreamMessageId lowestId, StreamMessageId highestId, Map<String, Long> consumerNames)
-
-
Method Details
-
getTotal
public long getTotal()Total amount of pending messages- Returns:
- number
-
getLowestId
Lowest stream id of pending messages- Returns:
- number
-
getHighestId
Highest stream id of pending messages- Returns:
- number
-
getConsumerNames
Pending messages amount mapped by consumer name- Returns:
- map
-