SpringBatch SkipPolicy, what's the use?

0

I would like to know what the SkipPolicy is that is set in StepBuilderFactory.

If possible I would like some documentation explaining.

    
asked by anonymous 01.02.2017 / 19:42

1 answer

0

According to documentation , a class that implements the interface SkipPolicy must determine a criterion for when a processing ( Step ) should be executed, or not. The interface has the boolean shouldSkip(java.lang.Throwable t, int skipCount) throws SkipLimitExceededException method that should return true if the Step should continue normally if the Throwable t is thrown during the execution of the step, or false otherwise. Already the parameter skipCount corresponds to the number of times the step was skipped given the current execution.

    
02.02.2017 / 11:58