Package edu.byu.hbll.box
Interface SingleProcessor
-
- All Superinterfaces:
BoxConfigurable
,Processor
public interface SingleProcessor extends Processor
AProcessor
that only processes one id/context at a time.- Author:
- Charles Draper
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default ProcessResult
process(ProcessBatch batch)
Processes ids and dependencies associated with the ids into final documents to be saved in the database.ProcessResult
process(ProcessContext context)
Processes a single context (ie, no batching).-
Methods inherited from interface edu.byu.hbll.box.BoxConfigurable
postConstruct, postInit, preDestroy
-
-
-
-
Method Detail
-
process
ProcessResult process(ProcessContext context)
Processes a single context (ie, no batching). Important: Be sure the batch capacity is set to one or Box will execute the batch sequentially.- Parameters:
context
- the context containing the id, dependencies and other info for processing- Returns:
- the result of processing the id including newly processed documents to be saved
-
process
default ProcessResult process(ProcessBatch batch)
Description copied from interface:Processor
Processes ids and dependencies associated with the ids into final documents to be saved in the database.- Specified by:
process
in interfaceProcessor
- Parameters:
batch
- a batch ofProcessContext
s to be processed- Returns:
- the result of processing the batch including newly processed documents to be saved
-
-