Package org.verapdf.processor
Interface BatchProcessingHandler
-
- All Superinterfaces:
AutoCloseable,Closeable
- All Known Implementing Classes:
AbstractBatchHandler,AbstractXmlHandler
public interface BatchProcessingHandler extends Closeable
Interface that should be implemented by developers wishing to write custom result handlers for the veraPDFBatchProcessor. The interface effectively defines a set of processing callbacks that are invoked by the batch processor at specific points during processing.- Version:
- 0.1 Created 8 Nov 2016:22:54:02
- Author:
- Carl Wilson carlwilson AT github
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidhandleBatchEnd(BatchSummary summary)This method is called by theBatchProcessorat the end of the batch process and allows custom action to be taken informed by the summary of the batch process.voidhandleBatchStart(ProcessorConfig config)This method is called by theBatchProcessorat the start of processing.voidhandleResult(ProcessorResult result)This method is called by theBatchProcessorafter each item in the batch is processed allowing the implementor to take specific action for each item processed.
-
-
-
Method Detail
-
handleBatchStart
void handleBatchStart(ProcessorConfig config) throws VeraPDFException
This method is called by theBatchProcessorat the start of processing. The processor passes itProcessorConfigallowing the handler to read the config details and take action.- Parameters:
config- theProcessorConfigsupplied by the caller of the batch process.- Throws:
VeraPDFException- if there's a problem setting up the batch process.
-
handleResult
void handleResult(ProcessorResult result) throws VeraPDFException
This method is called by theBatchProcessorafter each item in the batch is processed allowing the implementor to take specific action for each item processed.- Parameters:
result- theProcessorResultfor the last item processed.- Throws:
VeraPDFException- if there's a problem with the particular result.
-
handleBatchEnd
void handleBatchEnd(BatchSummary summary) throws VeraPDFException
This method is called by theBatchProcessorat the end of the batch process and allows custom action to be taken informed by the summary of the batch process.- Parameters:
summary- theBatchSummaryfor the batch process just completed.- Throws:
VeraPDFException- if there's a problem handling theBatchSummary
-
-