public class MessageStream extends PaginatedCollection<Message>
Modifier | Constructor and Description |
---|---|
protected |
MessageStream(Iterable<Message> resources,
Iterable<Link> links) |
Modifier and Type | Method and Description |
---|---|
com.google.common.base.Optional<Object> |
nextMarker()
If there is a next marker, then the set is incomplete and you should issue another command to
retrieve the rest, setting the option
marker to this value |
StreamMessagesOptions |
nextStreamOptions()
Only call this method if
nextMarker().isPresent() returns true. |
getLinks, getTotalEntries, iterator, nextPaginationOptions
allMatch, anyMatch, contains, copyInto, cycle, filter, filter, first, firstMatch, from, from, get, index, isEmpty, last, limit, size, skip, toArray, toList, toMap, toSet, toSortedList, toSortedSet, toString, transform, transformAndConcat, uniqueIndex
public StreamMessagesOptions nextStreamOptions()
nextMarker().isPresent()
returns true.public com.google.common.base.Optional<Object> nextMarker()
IterableWithMarker
marker
to this valuenextMarker
in class PaginatedCollection<Message>
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.