Spring Batch Skippolicy, what’s it for?

Asked

Viewed 119 times

0

I wonder what the Skippolicy which is set in Stepbuilderfactory.

If possible would like some documentation explaining.

  • Could you give some example of the context in which you are using?

1 answer

0

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

Browser other questions tagged

You are not signed in. Login or sign up in order to post.