public class SystemStreamPartitionIterator extends java.lang.Object implements java.util.Iterator<IncomingMessageEnvelope>
Iterator
that wraps a
SystemConsumer
to iterate over the messages
the consumer provides for the specified
SystemStreamPartition
.Constructor and Description |
---|
SystemStreamPartitionIterator(SystemConsumer systemConsumer,
SystemStreamPartition systemStreamPartition) |
SystemStreamPartitionIterator(SystemConsumer systemConsumer,
SystemStreamPartition systemStreamPartition,
int fetchSize) |
Modifier and Type | Method and Description |
---|---|
boolean |
hasNext() |
IncomingMessageEnvelope |
next() |
void |
remove() |
public SystemStreamPartitionIterator(SystemConsumer systemConsumer, SystemStreamPartition systemStreamPartition)
public SystemStreamPartitionIterator(SystemConsumer systemConsumer, SystemStreamPartition systemStreamPartition, int fetchSize)
public boolean hasNext()
hasNext
in interface java.util.Iterator<IncomingMessageEnvelope>
public IncomingMessageEnvelope next()
next
in interface java.util.Iterator<IncomingMessageEnvelope>
public void remove()
remove
in interface java.util.Iterator<IncomingMessageEnvelope>