Class StreamInfo.XInfoStream
java.lang.Object
org.springframework.data.redis.connection.stream.StreamInfo.XInfoObject
org.springframework.data.redis.connection.stream.StreamInfo.XInfoStream
- Enclosing class:
- StreamInfo
Value object holding general information about a Redis Stream.
- Author:
- Christoph Strobl
-
Field Summary
Fields inherited from class org.springframework.data.redis.connection.stream.StreamInfo.XInfoObject
DEFAULT_TYPE_HINTS
-
Method Summary
Modifier and TypeMethodDescriptionThe id of the streams first entry.static StreamInfo.XInfoStream
Factory method to create a new instance ofStreamInfo.XInfoStream
.The streams first entry.The streams first entry.long
The number of associated consumer groups.The id of the streams last entry.The last generated id.long
The streams radix tree key size.long
Total number of element radix tree nodes.long
Total number of element in the stream.Methods inherited from class org.springframework.data.redis.connection.stream.StreamInfo.XInfoObject
getRaw, toString
-
Method Details
-
fromList
Factory method to create a new instance ofStreamInfo.XInfoStream
.- Parameters:
source
- the raw value source.- Returns:
-
streamLength
public long streamLength()Total number of element in the stream. Corresponds to length.- Returns:
-
radixTreeKeySize
public long radixTreeKeySize()The streams radix tree key size. Corresponds to radix-tree-keys.- Returns:
-
radixTreeNodesSize
public long radixTreeNodesSize()Total number of element radix tree nodes. Corresponds to radix-tree-nodes.- Returns:
-
groupCount
public long groupCount()The number of associated consumer groups. Corresponds to groups.- Returns:
-
lastGeneratedId
The last generated id. May not be the same aslastEntryId()
. Corresponds to last-generated-id.- Returns:
-
firstEntryId
The id of the streams first entry. Corresponds to first-entry 1).- Returns:
-
getFirstEntry
The streams first entry. Corresponds to first-entry.- Returns:
-
lastEntryId
The id of the streams last entry. Corresponds to last-entry 1).- Returns:
-
getLastEntry
The streams first entry. Corresponds to last-entry.- Returns:
-