|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.semanticweb.elk.util.concurrent.computation.BaseInputProcessor<J>
public abstract class BaseInputProcessor<J>
Implements basic job queueing and lets subclasses focus on processing single jobs
| Constructor Summary | |
|---|---|
BaseInputProcessor()
|
|
BaseInputProcessor(InputProcessorListenerNotifyFinishedJob<J> listener)
|
|
| Method Summary | |
|---|---|
void |
finish()
Indicate that processing of the input is finished. |
void |
process()
Process all currently submitted jobs. |
protected abstract void |
process(J job)
|
void |
submit(J job)
Submit a job to be processed by this manager. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BaseInputProcessor()
public BaseInputProcessor(InputProcessorListenerNotifyFinishedJob<J> listener)
| Method Detail |
|---|
public void submit(J job)
InputProcessor
submit in interface InputProcessor<J>job - the job to be submitted
public void process()
throws InterruptedException
InputProcessor
process in interface InputProcessor<J>InterruptedException - if interrupted during processingpublic void finish()
InputProcessorInputProcessor.process() (but it is not
necessary that every call of InputProcessor.process() should be followed by
InputProcessor.finish()).
finish in interface InputProcessor<J>protected abstract void process(J job)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||