Class NeverSkipItemSkipPolicy
java.lang.Object
org.springframework.batch.core.step.skip.NeverSkipItemSkipPolicy
- All Implemented Interfaces:
SkipPolicy
SkipPolicy
implementation that always returns false, indicating that an item
should not be skipped.- Author:
- Lucas Ward, Mahmoud Ben Hassine
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
shouldSkip
(Throwable t, long skipCount) Returns true or false, indicating whether or not processing should continue with the given throwable.
-
Constructor Details
-
NeverSkipItemSkipPolicy
public NeverSkipItemSkipPolicy()
-
-
Method Details
-
shouldSkip
Description copied from interface:SkipPolicy
Returns true or false, indicating whether or not processing should continue with the given throwable. Clients may useskipCount<0
to 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:
shouldSkip
in interfaceSkipPolicy
- Parameters:
t
- exception encountered while processingskipCount
- currently running count of skips- Returns:
- true if processing should continue, false otherwise.
-