Package org.redisson.api
Class StreamInfo<K,V>
java.lang.Object
org.redisson.api.StreamInfo<K,V>
- Type Parameters:
K- key typeV- value type
Object containing details about Stream
- Author:
- Nikita Koksharov
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns first stream entryintReturns amount of groups belonging to the streamReturns last stream entryReturns last StreamMessageId used by the streamintReturns length of the streamintReturns amount of keys allocated by Radix tree of the stream.intReturns amount of nodes allocated by Radix tree of the stream.voidsetFirstEntry(StreamInfo.Entry<K, V> firstEntry) voidsetGroups(int groups) voidsetLastEntry(StreamInfo.Entry<K, V> lastEntry) voidsetLastGeneratedId(StreamMessageId lastGeneratedId) voidsetLength(int length) voidsetRadixTreeKeys(int radixTreeKeys) voidsetRadixTreeNodes(int radixTreeNodes)
-
Constructor Details
-
StreamInfo
public StreamInfo()
-
-
Method Details
-
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
Returns last StreamMessageId used by the stream- Returns:
- StreamMessageId object
-
setLastGeneratedId
-
getFirstEntry
Returns first stream entry- Returns:
- stream entry
-
setFirstEntry
-
getLastEntry
Returns last stream entry- Returns:
- stream entry
-
setLastEntry
-