easy-batch job validators

Validating input data is an essential step in every batch processing application. With Easy Batch, you can verify records by registering one or more RecordValidator implementations, as follows:

Job job = new JobBuilder()
    . validator ( new MyFirstRecordValidator ())
    .processor(new MyRecordProcessor())
    .validator(new MySecondRecordValidator())
    .build();

The record will be rejected on the first verification error.

Supported checkers

 

 

References

https://github.com/j-easy/easy-batch/wiki/validators

Guess you like

Origin www.cnblogs.com/rongfengliang/p/12730167.html