Package org.jeasy.batch.core.processor
Class RecordCollector<P>
- java.lang.Object
-
- org.jeasy.batch.core.processor.RecordCollector<P>
-
- Type Parameters:
P
- The type of the record's payload.
- All Implemented Interfaces:
RecordProcessor<P,P>
public class RecordCollector<P> extends java.lang.Object implements RecordProcessor<P,P>
Convenient processor that collects records.- Author:
- Mahmoud Ben Hassine ([email protected])
-
-
Constructor Summary
Constructors Constructor Description RecordCollector()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<Record<P>>
getRecords()
Record<P>
processRecord(Record<P> record)
Process a record.
-
-
-
Method Detail
-
processRecord
public Record<P> processRecord(Record<P> record)
Description copied from interface:RecordProcessor
Process a record.- Specified by:
processRecord
in interfaceRecordProcessor<P,P>
- Parameters:
record
- to process.- Returns:
- the processed record, may be of a different type than the input record, or
null
to skip next processors
-
-