public interface Processor
Modifier and Type | Method and Description |
---|---|
<S,T> OptErrorH<S> |
process(Iterator<S> source,
Function<S,T> process,
ResultHandler<S,T> target)
Specify input, process and target.
|
<S,T> OptErrorH<S> process(Iterator<S> source, Function<S,T> process, ResultHandler<S,T> target)
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 to the passed ErrorHandler
.
S
- Type of processed sourcesT
- Type of processed resultssource
- Source of inputsprocess
- Processing functiontarget
- Results handler