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 TypeMethodDescriptionintReturns the count of all entries added to the stream during its lifetimeReturns first stream entryintReturns amount of groups belonging to the streamReturns last stream entryReturns last StreamMessageId used by the streamintReturns length of the streamReturns the maximal entry ID that was deleted from the streamintReturns amount of keys allocated by Radix tree of the stream.intReturns 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) voidsetFirstEntry(StreamInfo.Entry<K, V> firstEntry) voidsetGroups(int groups) voidsetLastEntry(StreamInfo.Entry<K, V> lastEntry) voidsetLastGeneratedId(StreamMessageId lastGeneratedId) voidsetLength(int length) StreamInfo<K, V> setMaxDeletedEntryId(StreamMessageId maxDeletedEntryId) voidsetRadixTreeKeys(int radixTreeKeys) voidsetRadixTreeNodes(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
-