Class StreamInfo.XInfoConsumers
java.lang.Object
org.springframework.data.redis.connection.stream.StreamInfo.XInfoConsumers
- Enclosing class:
- StreamInfo
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidforEach(Consumer<? super StreamInfo.XInfoConsumer> action) Performs the given action on every availableStreamInfo.XInfoConsumerof thisStreamInfo.XInfoConsumers.static StreamInfo.XInfoConsumersget(int index) Returns theStreamInfo.XInfoConsumerelement at the given index.intTotal number of consumers in the consumer group.booleanisEmpty()iterator()Returns an iterator over theStreamInfo.XInfoConsumerelements.intsize()Returns the number ofStreamInfo.XInfoConsumeravailable.stream()Returns a sequentialStreamofStreamInfo.XInfoConsumer.toString()
-
Constructor Details
-
XInfoConsumers
-
-
Method Details
-
fromList
-
getConsumerCount
public int getConsumerCount()Total number of consumers in the consumer group.- Returns:
- zero if none available.
-
size
public int size()Returns the number ofStreamInfo.XInfoConsumeravailable.- Returns:
- zero if none available.
- See Also:
-
isEmpty
public boolean isEmpty()- Returns:
- true if no groups associated.
-
iterator
Returns an iterator over theStreamInfo.XInfoConsumerelements.- Returns:
-
get
Returns theStreamInfo.XInfoConsumerelement at the given index.- Returns:
- the element at the specified position.
- Throws:
IndexOutOfBoundsException- if the index is out of range.
-
stream
Returns a sequentialStreamofStreamInfo.XInfoConsumer.- Returns:
-
forEach
Performs the given action on every availableStreamInfo.XInfoConsumerof thisStreamInfo.XInfoConsumers.- Parameters:
action-
-
toString
-