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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns first stream entryint
Returns amount of groups belonging to the streamReturns last stream entryReturns last StreamMessageId used by the streamint
Returns length of the streamint
Returns amount of keys allocated by Radix tree of the stream.int
Returns amount of nodes allocated by Radix tree of the stream.void
setFirstEntry
(StreamInfo.Entry<K, V> firstEntry) void
setGroups
(int groups) void
setLastEntry
(StreamInfo.Entry<K, V> lastEntry) void
setLastGeneratedId
(StreamMessageId lastGeneratedId) void
setLength
(int length) void
setRadixTreeKeys
(int radixTreeKeys) void
setRadixTreeNodes
(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
-