Class CompositeSkipPolicy
java.lang.Object
org.springframework.batch.core.step.skip.CompositeSkipPolicy
- All Implemented Interfaces:
SkipPolicy
- Author:
- Dave Syer, Mahmoud Ben Hassine
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetSkipPolicies(SkipPolicy[] skipPolicies) booleanshouldSkip(Throwable t, long skipCount) Returns true or false, indicating whether or not processing should continue with the given throwable.
-
Constructor Details
-
CompositeSkipPolicy
public CompositeSkipPolicy() -
CompositeSkipPolicy
-
-
Method Details
-
setSkipPolicies
-
shouldSkip
Description copied from interface:SkipPolicyReturns true or false, indicating whether or not processing should continue with the given throwable. Clients may useskipCount<0to probe for exception types that are skippable, so implementations should be able to handle gracefully the case whereskipCount<0. Implementations should avoid throwing any undeclared exceptions.- Specified by:
shouldSkipin interfaceSkipPolicy- Parameters:
t- exception encountered while processingskipCount- currently running count of skips- Returns:
- true if processing should continue, false otherwise.
- Throws:
SkipLimitExceededException- if a limit is breached
-