org.springframework.batch.core.step.skip
Class CompositeSkipPolicy

java.lang.Object
  extended by org.springframework.batch.core.step.skip.CompositeSkipPolicy
All Implemented Interfaces:
SkipPolicy

public class CompositeSkipPolicy
extends Object
implements SkipPolicy

Author:
Dave Syer

Constructor Summary
CompositeSkipPolicy()
           
CompositeSkipPolicy(SkipPolicy[] skipPolicies)
           
 
Method Summary
 void setSkipPolicies(SkipPolicy[] skipPolicies)
           
 boolean shouldSkip(Throwable t, int skipCount)
          Returns true or false, indicating whether or not processing should continue with the given throwable.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompositeSkipPolicy

public CompositeSkipPolicy()

CompositeSkipPolicy

public CompositeSkipPolicy(SkipPolicy[] skipPolicies)
Method Detail

setSkipPolicies

public void setSkipPolicies(SkipPolicy[] skipPolicies)

shouldSkip

public boolean shouldSkip(Throwable t,
                          int skipCount)
                   throws SkipLimitExceededException
Description copied from interface: SkipPolicy
Returns true or false, indicating whether or not processing should continue with the given throwable. Clients may use skipCount<0 to probe for exception types that are skippable, so implementations should be able to handle gracefully the case where skipCount<0. Implementations should avoid throwing any undeclared exceptions.

Specified by:
shouldSkip in interface SkipPolicy
Parameters:
t - exception encountered while reading
skipCount - currently running count of skips
Returns:
true if processing should continue, false otherwise.
Throws:
SkipLimitExceededException - if a limit is breached


Copyright © 2013 SpringSource. All Rights Reserved.