Package org.verapdf.processor
Interface BatchProcessingHandler
- All Superinterfaces:
AutoCloseable,Closeable
- All Known Implementing Classes:
AbstractBatchHandler,AbstractXmlHandler,JsonHandler
Interface that should be implemented by developers wishing to write custom
result handlers for the veraPDF
BatchProcessor. 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
Modifier and TypeMethodDescriptionvoidhandleBatchEnd(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, Boolean isLogsEnabled) 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 Details
-
handleBatchStart
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
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
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
-