jklustor-overlap-0.0.2-20140619012940 (ChemAxon)


com.chemaxon.overlap.concurrent
Interface Processor


public interface Processor

Abstraction of a mass processor.

Author:
Gabor Imre

Method Summary
<S,T> void
process(Iterator<S> source, Function<S,T> process, ErrorHandler<S> error, ResultHandler<S,T> target)
          Invoke blocking processing.
 

Method Detail

process

<S,T> void process(Iterator<S> source,
                   Function<S,T> process,
                   ErrorHandler<S> error,
                   ResultHandler<S,T> target)
Invoke blocking processing.

This method blocks until completion. The callbacks are invoked only on the main thread. Any exception thrown in the callbacks will propagate.

Process function will possibly be invoked on multiple worker threads, it must be thread safe. Any exception will be recorded and reported later.

Type Parameters:
S - Type of processed sources
T - Type of processed results
Parameters:
source - Source of inputs
process - Processing function
error - Error handler
target - Results handler

jklustor-overlap-0.0.2-20140619012940 (ChemAxon)