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

public static class StreamInfo.XInfoStream extends StreamInfo.XInfoObject
Value object holding general information about a Redis Stream.
Author:
Christoph Strobl
  • Method Details

    • fromList

      public static StreamInfo.XInfoStream fromList(List<Object> source)
      Factory method to create a new instance of StreamInfo.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

      public String lastGeneratedId()
      The last generated id. May not be the same as lastEntryId(). Corresponds to last-generated-id.
      Returns:
    • firstEntryId

      public String firstEntryId()
      The id of the streams first entry. Corresponds to first-entry 1).
      Returns:
    • getFirstEntry

      public Map<Object,Object> getFirstEntry()
      The streams first entry. Corresponds to first-entry.
      Returns:
    • lastEntryId

      public String lastEntryId()
      The id of the streams last entry. Corresponds to last-entry 1).
      Returns:
    • getLastEntry

      public Map<Object,Object> getLastEntry()
      The streams first entry. Corresponds to last-entry.
      Returns: