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 TypeMethodDescriptionint
Returns the count of all entries added to the stream during its lifetimeReturns first stream entryint
Returns amount of groups belonging to the streamReturns last stream entryReturns last StreamMessageId used by the streamint
Returns length of the streamReturns the maximal entry ID that was deleted from 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.Returns the first ID what was added to the streamStreamInfo
<K, V> setEntriesAdded
(int entriesAdded) 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) StreamInfo
<K, V> setMaxDeletedEntryId
(StreamMessageId maxDeletedEntryId) void
setRadixTreeKeys
(int radixTreeKeys) void
setRadixTreeNodes
(int radixTreeNodes) StreamInfo
<K, V> setRecordedFirstEntryId
(StreamMessageId recordedFirstEntryId)
-
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
-
getMaxDeletedEntryId
Returns the maximal entry ID that was deleted from the streamRequires Redis 7.0.0 and higher.
- Returns:
- StreamMessageId object
-
setMaxDeletedEntryId
-
getEntriesAdded
public int getEntriesAdded()Returns the count of all entries added to the stream during its lifetimeRequires Redis 7.0.0 and higher.
- Returns:
- entries count
-
setEntriesAdded
-
getRecordedFirstEntryId
Returns the first ID what was added to the streamRequires Redis 7.0.0 and higher.
- Returns:
- StreamMessageId object
-
setRecordedFirstEntryId
-