public class MessageWrapperBatchImpl extends java.lang.Object implements MessageWrapperBatch
| Constructor and Description |
|---|
MessageWrapperBatchImpl(java.util.List<MessageWrapper> messageList) |
| Modifier and Type | Method and Description |
|---|---|
int |
getCursor()
Getter for the cursor - the indicator of the "current" message in the batch.
|
java.util.List<T> |
getMessageList()
Getter for the list of messages.
|
int |
getSize()
Convenience method for querying the size of the batch.
|
boolean |
hasNext() |
T |
next() |
void |
remove()
Not supported - throws UnsupportedOperationException
|
int |
rewind()
Rewinds the batch by resetting the cursor to 0.
|
public MessageWrapperBatchImpl(java.util.List<MessageWrapper> messageList)
public java.util.List<T> getMessageList()
public int getCursor()
public int getSize()
getMessageList().lengthpublic int rewind()
public T next()
next in interface java.util.Iterator<T>public boolean hasNext()
hasNext in interface java.util.Iterator<T>public void remove()
remove in interface java.util.Iterator<T>java.lang.UnsupportedOperationException - always