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 TypeMethodDescriptionvoid
handleBatchEnd
(BatchSummary summary) This method is called by theBatchProcessor
at the end of the batch process and allows custom action to be taken informed by the summary of the batch process.void
handleBatchStart
(ProcessorConfig config) This method is called by theBatchProcessor
at the start of processing.void
handleResult
(ProcessorResult result, Boolean isLogsEnabled) This method is called by theBatchProcessor
after 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 theBatchProcessor
at the start of processing. The processor passes itProcessorConfig
allowing the handler to read the config details and take action.- Parameters:
config
- theProcessorConfig
supplied 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 theBatchProcessor
after each item in the batch is processed allowing the implementor to take specific action for each item processed.- Parameters:
result
- theProcessorResult
for the last item processed.- Throws:
VeraPDFException
- if there's a problem with the particular result.
-
handleBatchEnd
This method is called by theBatchProcessor
at the end of the batch process and allows custom action to be taken informed by the summary of the batch process.- Parameters:
summary
- theBatchSummary
for the batch process just completed.- Throws:
VeraPDFException
- if there's a problem handling theBatchSummary
-