Package org.redisson.api
Class StreamInfo<K,V>
- java.lang.Object
-
- org.redisson.api.StreamInfo<K,V>
-
- Type Parameters:
K
- key typeV
- value type
public class StreamInfo<K,V> extends Object
Object containing details about Stream- Author:
- Nikita Koksharov
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
StreamInfo.Entry<K,V>
-
Constructor Summary
Constructors Constructor Description StreamInfo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StreamInfo.Entry<K,V>
getFirstEntry()
Returns first stream entryint
getGroups()
Returns amount of groups belonging to the streamStreamInfo.Entry<K,V>
getLastEntry()
Returns last stream entryStreamMessageId
getLastGeneratedId()
Returns last StreamMessageId used by the streamint
getLength()
Returns length of the streamint
getRadixTreeKeys()
Returns amount of keys allocated by Radix tree of the stream.int
getRadixTreeNodes()
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)
-
-
-
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
-
setFirstEntry
public void setFirstEntry(StreamInfo.Entry<K,V> firstEntry)
-
getLastEntry
public StreamInfo.Entry<K,V> getLastEntry()
Returns last stream entry- Returns:
- stream entry
-
setLastEntry
public void setLastEntry(StreamInfo.Entry<K,V> lastEntry)
-
-