Class StreamInfo.XInfoGroups
java.lang.Object
org.springframework.data.redis.connection.stream.StreamInfo.XInfoGroups
- Enclosing class:
- StreamInfo
Value object holding general information about consumer groups associated with a
Redis Stream.
- Author:
- Christoph Strobl
-
Method Summary
Modifier and TypeMethodDescriptionvoidforEach(Consumer<? super StreamInfo.XInfoGroup> action) Performs the given action on every availableStreamInfo.XInfoGroupof thisStreamInfo.XInfoGroups.static StreamInfo.XInfoGroupsFactory method to create a new instance ofStreamInfo.XInfoGroups.get(int index) Returns theStreamInfo.XInfoGroupelement at the given index.intTotal number of associated consumer groups.booleanisEmpty()iterator()Returns an iterator over theStreamInfo.XInfoGroupelements.intsize()Returns the number ofStreamInfo.XInfoGroupavailable.stream()Returns a sequentialStreamofStreamInfo.XInfoGroup.toString()
-
Method Details
-
fromList
Factory method to create a new instance ofStreamInfo.XInfoGroups.- Parameters:
source- the raw value source.- Returns:
-
groupCount
public int groupCount()Total number of associated consumer groups.- Returns:
- zero if none available.
-
size
public int size()Returns the number ofStreamInfo.XInfoGroupavailable.- Returns:
- zero if none available.
- See Also:
-
isEmpty
public boolean isEmpty()- Returns:
- true if no groups associated.
-
iterator
Returns an iterator over theStreamInfo.XInfoGroupelements.- Returns:
-
get
Returns theStreamInfo.XInfoGroupelement at the given index.- Returns:
- the element at the specified position.
- Throws:
IndexOutOfBoundsException- if the index is out of range.
-
stream
Returns a sequentialStreamofStreamInfo.XInfoGroup.- Returns:
-
forEach
Performs the given action on every availableStreamInfo.XInfoGroupof thisStreamInfo.XInfoGroups.- Parameters:
action-
-
toString
-