org.springframework.batch.core.step.skip
Interface ItemSkipPolicy

All Known Implementing Classes:
AlwaysSkipItemSkipPolicy, LimitCheckingItemSkipPolicy, NeverSkipItemSkipPolicy

public interface ItemSkipPolicy

Policy for determining whether or not some processing should be skipped.

Author:
Lucas Ward, Dave Syer

Method Summary
 boolean shouldSkip(Throwable t, int skipCount)
          Returns true or false, indicating whether or not processing should continue with the given throwable.
 

Method Detail

shouldSkip

boolean shouldSkip(Throwable t,
                   int skipCount)
                   throws SkipLimitExceededException
Returns true or false, indicating whether or not processing should continue with the given throwable.

Parameters:
t - exception encountered while reading
skipCount - currently running count of skips
Returns:
true if reading should continue, false otherwise.
Throws:
SkipLimitExceededException - if a limit is breached
IllegalArgumentException - if the exception is null


Copyright © 2008 SpringSource. All Rights Reserved.