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 SummaryFields inherited from class org.springframework.data.redis.connection.stream.StreamInfo.XInfoObjectDEFAULT_TYPE_HINTS
- 
Method SummaryModifier and TypeMethodDescriptionThe id of the streams first entry.static StreamInfo.XInfoStreamFactory method to create a new instance ofStreamInfo.XInfoStream.The streams first entry.The streams first entry.longThe number of associated consumer groups.The id of the streams last entry.The last generated id.longThe streams radix tree key size.longTotal number of element radix tree nodes.longTotal number of element in the stream.Methods inherited from class org.springframework.data.redis.connection.stream.StreamInfo.XInfoObjectgetRaw, toString
- 
Method Details- 
fromListFactory method to create a new instance ofStreamInfo.XInfoStream.- Parameters:
- source- the raw value source.
- Returns:
 
- 
streamLengthpublic long streamLength()Total number of element in the stream. Corresponds to length.- Returns:
 
- 
radixTreeKeySizepublic long radixTreeKeySize()The streams radix tree key size. Corresponds to radix-tree-keys.- Returns:
 
- 
radixTreeNodesSizepublic long radixTreeNodesSize()Total number of element radix tree nodes. Corresponds to radix-tree-nodes.- Returns:
 
- 
groupCountpublic long groupCount()The number of associated consumer groups. Corresponds to groups.- Returns:
 
- 
lastGeneratedIdThe last generated id. May not be the same aslastEntryId(). Corresponds to last-generated-id.- Returns:
 
- 
firstEntryIdThe id of the streams first entry. Corresponds to first-entry 1).- Returns:
 
- 
getFirstEntryThe streams first entry. Corresponds to first-entry.- Returns:
 
- 
lastEntryIdThe id of the streams last entry. Corresponds to last-entry 1).- Returns:
 
- 
getLastEntryThe streams first entry. Corresponds to last-entry.- Returns:
 
 
-