public interface QueueProcessorList extends OsidList
Like all OsidLists,
QueueProcessorList
provides a means for accessing QueueProcessor
elements
sequentially either one at a time or many at a time. Examples:
while (qpl.hasNext()) { QueueProcessor processor = qpl.getNextQueueProcessor(); }or
while (qpl.hasNext()) { QueueProcessor[] processors = qpl.getNextQueueProcessors(qpl.available()); }
Modifier and Type | Method and Description |
---|---|
QueueProcessor |
getNextQueueProcessor()
Gets the next
QueueProcessor in this list. |
QueueProcessor[] |
getNextQueueProcessors(long n)
Gets the next set of
QueueProcessor elements in this
list. |
QueueProcessor getNextQueueProcessor() throws OperationFailedException
QueueProcessor
in this list. QueueProcessor
in this list. The
hasNext()
method should be used to test that a
next QueueProcessor
is available before calling
this method.IllegalStateException
- no more elements available in
this listOperationFailedException
- unable to complete requestmandatory
- This method must be implemented. QueueProcessor[] getNextQueueProcessors(long n) throws OperationFailedException
QueueProcessor
elements in this
list. The specified amount must be less than or equal to the return
from available().
n
- the number of QueueProcessor
elements
requested which must be less than or equal to
available()
QueueProcessor
elements.
The length of the array is less than or equal to the
number specified.IllegalStateException
- no more elements available in
this listOperationFailedException
- unable to complete requestmandatory
- This method must be implemented.