Constructor and Description |
---|
ProcessorImpl(BppParameters params)
Construct.
|
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.
|
public ProcessorImpl(BppParameters params)
params
- Parameterspublic <S,T> OptErrorH<S> process(Iterator<S> source, Function<S,T> process, ResultHandler<S,T> target)
Processor
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
.