|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mule.routing.outbound.PartitionedMessageSequence<Q>
public class PartitionedMessageSequence<Q>
A MessageSequence wrapper that partitions the wrapped sequence in
collections of the specified size.
| Field Summary |
|---|
| Fields inherited from interface org.mule.routing.MessageSequence |
|---|
UNKNOWN_SIZE |
| Constructor Summary | |
|---|---|
PartitionedMessageSequence(MessageSequence<Q> seq,
int groupSize)
|
|
| Method Summary | |
|---|---|
boolean |
hasNext()
Whether this sequence has more elements. |
boolean |
isEmpty()
If the sequence is empty |
Collection<Q> |
next()
The next element of the sequence. |
void |
remove()
Unsupported operation. |
int |
size()
The number of members of the sequence. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PartitionedMessageSequence(MessageSequence<Q> seq,
int groupSize)
| Method Detail |
|---|
public int size()
MessageSequence
size in interface MessageSequence<Collection<Q>>MessageSequence.UNKNOWN_SIZE,
if it is unknownpublic boolean hasNext()
MessageSequence
hasNext in interface Iterator<Collection<Q>>hasNext in interface MessageSequence<Collection<Q>>Iterator.hasNext()public Collection<Q> next()
MessageSequenceMessageSequence.size() is not equal to
MessageSequence.UNKNOWN_SIZE, this means that this method may be invoked
approximately up to MessageSequence.size() times.
next in interface Iterator<Collection<Q>>next in interface MessageSequence<Collection<Q>>public boolean isEmpty()
MessageSequence
isEmpty in interface MessageSequence<Collection<Q>>public void remove()
MessageSequenceMessageSequence do not allow removal of elements.
remove in interface Iterator<Collection<Q>>remove in interface MessageSequence<Collection<Q>>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||