Class StreamInfo<K,​V>

  • Type Parameters:
    K - key type
    V - value type

    public class StreamInfo<K,​V>
    extends Object
    Object containing details about Stream
    Author:
    Nikita Koksharov
    • Constructor Detail

      • StreamInfo

        public StreamInfo()
    • Method Detail

      • getLength

        public int getLength()
        Returns length of the stream
        Returns:
        length of the stream
      • setLength

        public void setLength​(int length)
      • getRadixTreeKeys

        public int getRadixTreeKeys()
        Returns amount of keys allocated by Radix tree of the stream.
        Returns:
        amount of keys
      • setRadixTreeKeys

        public void setRadixTreeKeys​(int radixTreeKeys)
      • getRadixTreeNodes

        public int getRadixTreeNodes()
        Returns amount of nodes allocated by Radix tree of the stream.
        Returns:
        amount of nodes
      • setRadixTreeNodes

        public void setRadixTreeNodes​(int radixTreeNodes)
      • getGroups

        public int getGroups()
        Returns amount of groups belonging to the stream
        Returns:
        amount of groups
      • setGroups

        public void setGroups​(int groups)
      • getLastGeneratedId

        public StreamMessageId getLastGeneratedId()
        Returns last StreamMessageId used by the stream
        Returns:
        StreamMessageId object
      • setLastGeneratedId

        public void setLastGeneratedId​(StreamMessageId lastGeneratedId)
      • getFirstEntry

        public StreamInfo.Entry<K,​V> getFirstEntry()
        Returns first stream entry
        Returns:
        stream entry
      • getLastEntry

        public StreamInfo.Entry<K,​V> getLastEntry()
        Returns last stream entry
        Returns:
        stream entry