Package org.redisson.api
Class StreamGroup
java.lang.Object
org.redisson.api.StreamGroup
Object containing details about Stream Group
- Author:
- Nikita Koksharov
-
Constructor Summary
ConstructorDescriptionStreamGroup
(String name, int consumers, int pending, StreamMessageId lastDeliveredId) StreamGroup
(String name, int consumers, int pending, StreamMessageId lastDeliveredId, int entriesRead, int lag) -
Method Summary
Modifier and TypeMethodDescriptionint
Returns current customers amount for this groupint
Returns amount of entries that the group had readint
getLag()
Returns amount of entries that are still waiting for deliveryReturns last delivered StreamMessageId for this groupgetName()
Returns name of this groupint
Returns amount of pending messages for this grouptoString()
-
Constructor Details
-
StreamGroup
-
StreamGroup
public StreamGroup(String name, int consumers, int pending, StreamMessageId lastDeliveredId, int entriesRead, int lag)
-
-
Method Details
-
getLastDeliveredId
Returns last delivered StreamMessageId for this group- Returns:
- StreamMessageId object
-
getConsumers
public int getConsumers()Returns current customers amount for this group- Returns:
- customers amount
-
getName
Returns name of this group- Returns:
- name of group
-
getPending
public int getPending()Returns amount of pending messages for this group- Returns:
- amount of pending messages
-
getEntriesRead
public int getEntriesRead()Returns amount of entries that the group had read- Returns:
- amount of read entries
-
getLag
public int getLag()Returns amount of entries that are still waiting for delivery- Returns:
- amount of entries for delivery
-
toString
-