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