public interface Processor
process(). It is assumed that each
Processor can be used only within one thread, but several different
Processors can work concurrently. In this case, processing is
finished when all of the concurrent Processors are finished.| Modifier and Type | Method and Description |
|---|---|
void |
finish()
Indicate that processing is finished.
|
void |
process()
Performs processing using this
Processor. |
void process()
throws InterruptedException
Processor. For each
Processor object the method should be called only from one
thread, but several Processor objects can call this method
concurrently. In this case, processing performs concurrently and is
finished when all concurrent calls of process() are finished.InterruptedException - if interrupted during processingvoid finish()
process(). But
it is not necessary that every call of process() should be
followed by finish(). E.g., it can be followed by
process() when it is determined that processing is not yet
finished (e.g., due to concurrent computation).Copyright © 2011–2024 Live Ontologies Project. All rights reserved.