public class RecordProcessingTimeListener extends Object implements PipelineListener
| Constructor and Description |
|---|
RecordProcessingTimeListener() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterRecordProcessing(Record inputRecord,
Record outputRecord)
Called after the record has been processed.
|
Record |
beforeRecordProcessing(Record inputRecord)
Called before the record gets processed.
|
void |
onRecordProcessingException(Record record,
Throwable throwable)
Called when an exception occurs during record processing
|
public Record beforeRecordProcessing(Record inputRecord)
PipelineListenerbeforeRecordProcessing in interface PipelineListenerinputRecord - The record that will be processed.public void afterRecordProcessing(Record inputRecord, Record outputRecord)
PipelineListenerafterRecordProcessing in interface PipelineListenerinputRecord - The record to process.outputRecord - The processed record. May be null if the record has been filteredpublic void onRecordProcessingException(Record record, Throwable throwable)
PipelineListeneronRecordProcessingException in interface PipelineListenerrecord - the record attempted to be processedthrowable - the exception occurred during record processingCopyright © 2015. All Rights Reserved.