Class PendingMessages
java.lang.Object
org.springframework.data.redis.connection.stream.PendingMessages
- All Implemented Interfaces:
- Iterable<PendingMessage>,- Supplier<Stream<PendingMessage>>,- Streamable<PendingMessage>
Value object holding detailed information about pending messages in consumer group for a given
 
Range and offset.- Since:
- 2.3
- Author:
- Christoph Strobl
- 
Constructor SummaryConstructorsConstructorDescriptionPendingMessages(String groupName, List<PendingMessage> pendingMessages) PendingMessages(String groupName, Range<?> range, List<PendingMessage> pendingMessages) 
- 
Method SummaryModifier and TypeMethodDescriptionget(int index) Get thePendingMessageat the given position.The consumer group name.Range<?>getRange()TheRangepending messages have been loaded.booleanisEmpty()iterator()intsize()toString()withinRange(Range<?> range) Adds the range to the currentPendingMessages.Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.IterableforEach, spliterator
- 
Constructor Details- 
PendingMessages
- 
PendingMessages
 
- 
- 
Method Details- 
withinRangeAdds the range to the currentPendingMessages.- Parameters:
- range- must not be null.
- Returns:
- new instance of PendingMessages.
 
- 
getGroupNameThe consumer group name.- Returns:
- never null.
 
- 
getRangeTheRangepending messages have been loaded.- Returns:
- never null.
 
- 
isEmptypublic boolean isEmpty()- Specified by:
- isEmptyin interface- Streamable<PendingMessage>
- Returns:
- true if no messages pending within range.
 
- 
sizepublic int size()- Returns:
- the number of pending messages in range.
 
- 
getGet thePendingMessageat the given position.- Parameters:
- index-
- Returns:
- the PendingMessagea the given index.
- Throws:
- IndexOutOfBoundsException- if the index is out of range.
 
- 
iterator- Specified by:
- iteratorin interface- Iterable<PendingMessage>
 
- 
toString
 
-