Class MessageStream
- java.lang.Object
-
- com.google.common.collect.FluentIterable<T>
-
- org.jclouds.collect.IterableWithMarker<T>
-
- org.jclouds.openstack.v2_0.domain.PaginatedCollection<Message>
-
- org.jclouds.openstack.marconi.v1.domain.MessageStream
-
public class MessageStream extends PaginatedCollection<Message>
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
MessageStream(Iterable<Message> resources, Iterable<Link> links)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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 optionmarker
to this valueStreamMessagesOptions
nextStreamOptions()
Only call this method ifnextMarker().isPresent()
returns true.-
Methods inherited from class org.jclouds.openstack.v2_0.domain.PaginatedCollection
getLinks, getTotalEntries, iterator, nextPaginationOptions
-
Methods inherited from class com.google.common.collect.FluentIterable
allMatch, anyMatch, append, append, concat, concat, concat, concat, concat, contains, copyInto, cycle, filter, filter, first, firstMatch, from, from, from, get, index, isEmpty, join, last, limit, of, of, size, skip, stream, toArray, toList, toMap, toMultiset, toSet, toSortedList, toSortedSet, toString, transform, transformAndConcat, uniqueIndex
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Method Detail
-
nextStreamOptions
public StreamMessagesOptions nextStreamOptions()
Only call this method ifnextMarker().isPresent()
returns true.- Returns:
- The options necessary to get the next page of messages.
-
nextMarker
public com.google.common.base.Optional<Object> nextMarker()
Description copied from class:IterableWithMarker
If there is a next marker, then the set is incomplete and you should issue another command to retrieve the rest, setting the optionmarker
to this value- Overrides:
nextMarker
in classPaginatedCollection<Message>
- Returns:
- next marker, or absent if list is complete
-
-