Class StreamInfo.XInfoConsumers
java.lang.Object
org.springframework.data.redis.connection.stream.StreamInfo.XInfoConsumers
- Enclosing class:
- StreamInfo
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
forEach
(Consumer<? super StreamInfo.XInfoConsumer> action) Performs the given action on every availableStreamInfo.XInfoConsumer
of thisStreamInfo.XInfoConsumers
.static StreamInfo.XInfoConsumers
get
(int index) Returns theStreamInfo.XInfoConsumer
element at the given index.int
Total number of consumers in the consumer group.boolean
isEmpty()
iterator()
Returns an iterator over theStreamInfo.XInfoConsumer
elements.int
size()
Returns the number ofStreamInfo.XInfoConsumer
available.stream()
Returns a sequentialStream
ofStreamInfo.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.XInfoConsumer
available.- Returns:
- zero if none available.
- See Also:
-
isEmpty
public boolean isEmpty()- Returns:
- true if no groups associated.
-
iterator
Returns an iterator over theStreamInfo.XInfoConsumer
elements.- Returns:
-
get
Returns theStreamInfo.XInfoConsumer
element at the given index.- Returns:
- the element at the specified position.
- Throws:
IndexOutOfBoundsException
- if the index is out of range.
-
stream
Returns a sequentialStream
ofStreamInfo.XInfoConsumer
.- Returns:
-
forEach
Performs the given action on every availableStreamInfo.XInfoConsumer
of thisStreamInfo.XInfoConsumers
.- Parameters:
action
-
-
toString
-