|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
J - the type of the jobs to be submitted and processedpublic interface InputProcessor<J>
An abstract interface for submitting and processing jobs of a certain type. It has a method for submitting jobs and processing of the submitted jobs, which are typically executed from concurrently running workers.
| Method Summary | |
|---|---|
void |
finish()
Indicate that processing of the input is finished. |
void |
process()
Process all currently submitted jobs. |
void |
submit(J job)
Submit a job to be processed by this manager. |
| Method Detail |
|---|
void submit(J job)
job - the job to be submitted
void process()
throws InterruptedException
InterruptedException - if interrupted during processingvoid finish()
process() (but it is not
necessary that every call of process() should be followed by
finish()).
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||